diracx-client 0.0.7__py3-none-any.whl → 0.0.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -378,7 +378,8 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
378
378
  async def do_device_flow(self, *, user_code: str, **kwargs: Any) -> Any:
379
379
  """Do Device Flow.
380
380
 
381
- This is called as the verification URI for the device flow.
381
+ Serve as the verification URI for the device flow.
382
+
382
383
  It will redirect to the actual OpenID server (IAM, CheckIn) to
383
384
  perform a authorization code flow.
384
385
 
@@ -435,8 +436,8 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
435
436
  async def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
436
437
  """Finish Device Flow.
437
438
 
438
- This the url callbacked by IAM/CheckIn after the authorization
439
- flow was granted.
439
+ Handle the URL callbacked by IAM/CheckIn after authorization flow.
440
+
440
441
  It gets us the code we need for the authorization flow, and we
441
442
  can map it to the corresponding device flow using the user_code
442
443
  in the cookie/session.
@@ -492,7 +493,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
492
493
  async def finished(self, **kwargs: Any) -> Any:
493
494
  """Finished.
494
495
 
495
- This is the final step of the device flow.
496
+ Mark the final step of the device flow.
496
497
 
497
498
  :return: any
498
499
  :rtype: any
@@ -539,7 +540,9 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
539
540
  async def get_refresh_tokens(self, **kwargs: Any) -> List[Any]:
540
541
  """Get Refresh Tokens.
541
542
 
542
- Get all refresh tokens for the user. If the user has the ``proxy_management`` property, then
543
+ Get all refresh tokens for the user.
544
+
545
+ If the user has the ``proxy_management`` property, then
543
546
  the subject is not used to filter the refresh tokens.
544
547
 
545
548
  :return: list of any
@@ -587,7 +590,9 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
587
590
  async def revoke_refresh_token_by_jti(self, jti: str, **kwargs: Any) -> str:
588
591
  """Revoke Refresh Token By Jti.
589
592
 
590
- Revoke a refresh token. If the user has the ``proxy_management`` property, then
593
+ Revoke a refresh token.
594
+
595
+ If the user has the ``proxy_management`` property, then
591
596
  the subject is not used to filter the refresh tokens.
592
597
 
593
598
  :param jti: Required.
@@ -697,6 +702,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
697
702
  """Initiate Authorization Flow.
698
703
 
699
704
  Initiate the authorization flow.
705
+
700
706
  It will redirect to the actual OpenID server (IAM, CheckIn) to
701
707
  perform a authorization code flow.
702
708
 
@@ -1831,6 +1837,7 @@ class JobsOperations:
1831
1837
  """Patch Metadata.
1832
1838
 
1833
1839
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
1840
+
1834
1841
  The argument are all the attributes/parameters of a job (except the ID).
1835
1842
 
1836
1843
  :param body: Required.
@@ -1848,6 +1855,7 @@ class JobsOperations:
1848
1855
  """Patch Metadata.
1849
1856
 
1850
1857
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
1858
+
1851
1859
  The argument are all the attributes/parameters of a job (except the ID).
1852
1860
 
1853
1861
  :param body: Required.
@@ -1865,6 +1873,7 @@ class JobsOperations:
1865
1873
  """Patch Metadata.
1866
1874
 
1867
1875
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
1876
+
1868
1877
  The argument are all the attributes/parameters of a job (except the ID).
1869
1878
 
1870
1879
  :param body: Is either a {str: JobMetaData} type or a IO[bytes] type. Required.
@@ -1930,8 +1939,9 @@ class JobsOperations:
1930
1939
  ) -> List[Dict[str, Any]]:
1931
1940
  """Search.
1932
1941
 
1933
- Creates a search query to the job database. This search can be based on
1934
- different parameters, such as jobID, status, owner, etc.
1942
+ Create a search query to the job database.
1943
+
1944
+ This search can be based on different parameters, such as jobID, status, owner, etc.
1935
1945
 
1936
1946
  **Possibilities**
1937
1947
 
@@ -1969,8 +1979,9 @@ class JobsOperations:
1969
1979
  ) -> List[Dict[str, Any]]:
1970
1980
  """Search.
1971
1981
 
1972
- Creates a search query to the job database. This search can be based on
1973
- different parameters, such as jobID, status, owner, etc.
1982
+ Create a search query to the job database.
1983
+
1984
+ This search can be based on different parameters, such as jobID, status, owner, etc.
1974
1985
 
1975
1986
  **Possibilities**
1976
1987
 
@@ -2007,8 +2018,9 @@ class JobsOperations:
2007
2018
  ) -> List[Dict[str, Any]]:
2008
2019
  """Search.
2009
2020
 
2010
- Creates a search query to the job database. This search can be based on
2011
- different parameters, such as jobID, status, owner, etc.
2021
+ Create a search query to the job database.
2022
+
2023
+ This search can be based on different parameters, such as jobID, status, owner, etc.
2012
2024
 
2013
2025
  **Possibilities**
2014
2026
 
@@ -2094,8 +2106,9 @@ class JobsOperations:
2094
2106
  ) -> Any:
2095
2107
  """Summary.
2096
2108
 
2097
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2098
- contains the
2109
+ Group jobs by a specific list of parameters.
2110
+
2111
+ Returns an array of n-uplets, where each n-uplet contains the
2099
2112
  values of the grouping parameters and the number of jobs that match those values.
2100
2113
 
2101
2114
  Body parameters:
@@ -2118,8 +2131,9 @@ class JobsOperations:
2118
2131
  async def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
2119
2132
  """Summary.
2120
2133
 
2121
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2122
- contains the
2134
+ Group jobs by a specific list of parameters.
2135
+
2136
+ Returns an array of n-uplets, where each n-uplet contains the
2123
2137
  values of the grouping parameters and the number of jobs that match those values.
2124
2138
 
2125
2139
  Body parameters:
@@ -2142,8 +2156,9 @@ class JobsOperations:
2142
2156
  async def summary(self, body: Union[_models.SummaryParams, IO[bytes]], **kwargs: Any) -> Any:
2143
2157
  """Summary.
2144
2158
 
2145
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2146
- contains the
2159
+ Group jobs by a specific list of parameters.
2160
+
2161
+ Returns an array of n-uplets, where each n-uplet contains the
2147
2162
  values of the grouping parameters and the number of jobs that match those values.
2148
2163
 
2149
2164
  Body parameters:
@@ -879,7 +879,8 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
879
879
  def do_device_flow(self, *, user_code: str, **kwargs: Any) -> Any:
880
880
  """Do Device Flow.
881
881
 
882
- This is called as the verification URI for the device flow.
882
+ Serve as the verification URI for the device flow.
883
+
883
884
  It will redirect to the actual OpenID server (IAM, CheckIn) to
884
885
  perform a authorization code flow.
885
886
 
@@ -936,8 +937,8 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
936
937
  def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
937
938
  """Finish Device Flow.
938
939
 
939
- This the url callbacked by IAM/CheckIn after the authorization
940
- flow was granted.
940
+ Handle the URL callbacked by IAM/CheckIn after authorization flow.
941
+
941
942
  It gets us the code we need for the authorization flow, and we
942
943
  can map it to the corresponding device flow using the user_code
943
944
  in the cookie/session.
@@ -993,7 +994,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
993
994
  def finished(self, **kwargs: Any) -> Any:
994
995
  """Finished.
995
996
 
996
- This is the final step of the device flow.
997
+ Mark the final step of the device flow.
997
998
 
998
999
  :return: any
999
1000
  :rtype: any
@@ -1040,7 +1041,9 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1040
1041
  def get_refresh_tokens(self, **kwargs: Any) -> List[Any]:
1041
1042
  """Get Refresh Tokens.
1042
1043
 
1043
- Get all refresh tokens for the user. If the user has the ``proxy_management`` property, then
1044
+ Get all refresh tokens for the user.
1045
+
1046
+ If the user has the ``proxy_management`` property, then
1044
1047
  the subject is not used to filter the refresh tokens.
1045
1048
 
1046
1049
  :return: list of any
@@ -1088,7 +1091,9 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1088
1091
  def revoke_refresh_token_by_jti(self, jti: str, **kwargs: Any) -> str:
1089
1092
  """Revoke Refresh Token By Jti.
1090
1093
 
1091
- Revoke a refresh token. If the user has the ``proxy_management`` property, then
1094
+ Revoke a refresh token.
1095
+
1096
+ If the user has the ``proxy_management`` property, then
1092
1097
  the subject is not used to filter the refresh tokens.
1093
1098
 
1094
1099
  :param jti: Required.
@@ -1198,6 +1203,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1198
1203
  """Initiate Authorization Flow.
1199
1204
 
1200
1205
  Initiate the authorization flow.
1206
+
1201
1207
  It will redirect to the actual OpenID server (IAM, CheckIn) to
1202
1208
  perform a authorization code flow.
1203
1209
 
@@ -2330,6 +2336,7 @@ class JobsOperations:
2330
2336
  """Patch Metadata.
2331
2337
 
2332
2338
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
2339
+
2333
2340
  The argument are all the attributes/parameters of a job (except the ID).
2334
2341
 
2335
2342
  :param body: Required.
@@ -2347,6 +2354,7 @@ class JobsOperations:
2347
2354
  """Patch Metadata.
2348
2355
 
2349
2356
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
2357
+
2350
2358
  The argument are all the attributes/parameters of a job (except the ID).
2351
2359
 
2352
2360
  :param body: Required.
@@ -2366,6 +2374,7 @@ class JobsOperations:
2366
2374
  """Patch Metadata.
2367
2375
 
2368
2376
  Update job metadata such as UserPriority, HeartBeatTime, JobType, etc.
2377
+
2369
2378
  The argument are all the attributes/parameters of a job (except the ID).
2370
2379
 
2371
2380
  :param body: Is either a {str: JobMetaData} type or a IO[bytes] type. Required.
@@ -2431,8 +2440,9 @@ class JobsOperations:
2431
2440
  ) -> List[Dict[str, Any]]:
2432
2441
  """Search.
2433
2442
 
2434
- Creates a search query to the job database. This search can be based on
2435
- different parameters, such as jobID, status, owner, etc.
2443
+ Create a search query to the job database.
2444
+
2445
+ This search can be based on different parameters, such as jobID, status, owner, etc.
2436
2446
 
2437
2447
  **Possibilities**
2438
2448
 
@@ -2470,8 +2480,9 @@ class JobsOperations:
2470
2480
  ) -> List[Dict[str, Any]]:
2471
2481
  """Search.
2472
2482
 
2473
- Creates a search query to the job database. This search can be based on
2474
- different parameters, such as jobID, status, owner, etc.
2483
+ Create a search query to the job database.
2484
+
2485
+ This search can be based on different parameters, such as jobID, status, owner, etc.
2475
2486
 
2476
2487
  **Possibilities**
2477
2488
 
@@ -2508,8 +2519,9 @@ class JobsOperations:
2508
2519
  ) -> List[Dict[str, Any]]:
2509
2520
  """Search.
2510
2521
 
2511
- Creates a search query to the job database. This search can be based on
2512
- different parameters, such as jobID, status, owner, etc.
2522
+ Create a search query to the job database.
2523
+
2524
+ This search can be based on different parameters, such as jobID, status, owner, etc.
2513
2525
 
2514
2526
  **Possibilities**
2515
2527
 
@@ -2593,8 +2605,9 @@ class JobsOperations:
2593
2605
  def summary(self, body: _models.SummaryParams, *, content_type: str = "application/json", **kwargs: Any) -> Any:
2594
2606
  """Summary.
2595
2607
 
2596
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2597
- contains the
2608
+ Group jobs by a specific list of parameters.
2609
+
2610
+ Returns an array of n-uplets, where each n-uplet contains the
2598
2611
  values of the grouping parameters and the number of jobs that match those values.
2599
2612
 
2600
2613
  Body parameters:
@@ -2617,8 +2630,9 @@ class JobsOperations:
2617
2630
  def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
2618
2631
  """Summary.
2619
2632
 
2620
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2621
- contains the
2633
+ Group jobs by a specific list of parameters.
2634
+
2635
+ Returns an array of n-uplets, where each n-uplet contains the
2622
2636
  values of the grouping parameters and the number of jobs that match those values.
2623
2637
 
2624
2638
  Body parameters:
@@ -2641,8 +2655,9 @@ class JobsOperations:
2641
2655
  def summary(self, body: Union[_models.SummaryParams, IO[bytes]], **kwargs: Any) -> Any:
2642
2656
  """Summary.
2643
2657
 
2644
- Group jobs by a specific list of parameters. Returns an array of n-uplets, where each n-uplet
2645
- contains the
2658
+ Group jobs by a specific list of parameters.
2659
+
2660
+ Returns an array of n-uplets, where each n-uplet contains the
2646
2661
  values of the grouping parameters and the number of jobs that match those values.
2647
2662
 
2648
2663
  Body parameters:
@@ -14,7 +14,7 @@ __all__ = [
14
14
 
15
15
  from azure.core.pipeline import PipelineResponse
16
16
  from azure.core.tracing.decorator_async import distributed_trace_async
17
- from diracx.core.models import TokenResponse
17
+ from diracx.core.models.auth import TokenResponse
18
18
 
19
19
  from ..._generated.aio.operations._operations import (
20
20
  _models,
@@ -20,7 +20,7 @@ import httpx
20
20
  import jwt
21
21
  from azure.core.credentials import AccessToken
22
22
  from diracx.core.utils import EXPIRES_GRACE_SECONDS, serialize_credentials
23
- from diracx.core.models import TokenResponse
23
+ from diracx.core.models.auth import TokenResponse
24
24
 
25
25
 
26
26
  class TokenStatus(Enum):
@@ -16,7 +16,7 @@ import json
16
16
  from io import BytesIO, IOBase
17
17
  from typing import Any, IO, Dict, TypedDict, Union, Unpack, cast, Literal
18
18
 
19
- from diracx.core.models import SearchSpec
19
+ from diracx.core.models.search import SearchSpec
20
20
 
21
21
 
22
22
  class ResponseExtra(TypedDict, total=False):
@@ -22,7 +22,7 @@ from azure.core.credentials import TokenCredential
22
22
  from azure.core.pipeline import PipelineRequest
23
23
  from azure.core.pipeline.policies import BearerTokenCredentialPolicy
24
24
 
25
- from diracx.core.models import TokenResponse
25
+ from diracx.core.models.auth import TokenResponse
26
26
  from diracx.core.preferences import DiracxPreferences, get_diracx_preferences
27
27
 
28
28
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diracx-client
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -20,26 +20,26 @@ diracx/client/_generated/aio/_configuration.py,sha256=JWKZSmE3mnX6JR3SIHvVed20_8
20
20
  diracx/client/_generated/aio/_patch.py,sha256=sKaNgM0-20jF_R-S87eusC0aZa38QJEsLLzW-HgOjOQ,686
21
21
  diracx/client/_generated/aio/_vendor.py,sha256=6EFsP3ValI_vbZ_ivnRYHg_oRjZ5jDiLlUqvAYyDMhM,1936
22
22
  diracx/client/_generated/aio/operations/__init__.py,sha256=gtvv0durn3Cr8FUdFImqDcCtCVp7RKULjprmO4jOoeI,1070
23
- diracx/client/_generated/aio/operations/_operations.py,sha256=nGCYU9HJHKK7M4b-pbRYQW__uFk2X-4hQuvnzgsxXV0,83943
23
+ diracx/client/_generated/aio/operations/_operations.py,sha256=jGBeNaH1VfLxzpF_Dp8Qev_y1S1ug1HIY894oGQb54c,83936
24
24
  diracx/client/_generated/aio/operations/_patch.py,sha256=jyk2R4wUaClz07zK9TiH6V_SxKakrHNZAUm35lqUC6k,816
25
25
  diracx/client/_generated/models/__init__.py,sha256=QRqgQrc6KxUjebhh4G9A43Su7U9JSu5_3lnr0xx6p8w,3022
26
26
  diracx/client/_generated/models/_enums.py,sha256=7ANOVuRfxsJLHSGGh34Nl4PwCBjK7FAbCO9djayU2_0,1808
27
27
  diracx/client/_generated/models/_models.py,sha256=ToHQKKDfgPxmuqW4VTRNh17a8izu3UdxEWmcTKe06KA,59218
28
28
  diracx/client/_generated/models/_patch.py,sha256=D8bxd8gAeLH7RWZNUuzTT7P_dyot9Cey91Rb-UwI2BI,1501
29
29
  diracx/client/_generated/operations/__init__.py,sha256=gtvv0durn3Cr8FUdFImqDcCtCVp7RKULjprmO4jOoeI,1070
30
- diracx/client/_generated/operations/_operations.py,sha256=b-oL_31wFU355mAU_9l7-oUBXqqUlzp-Exbv7nUBYFA,101275
30
+ diracx/client/_generated/operations/_operations.py,sha256=QYH_MMJrVmjQjFKET550fISRsh7boNGp6v50UQ38Ae0,101268
31
31
  diracx/client/_generated/operations/_patch.py,sha256=xE3M4iVZE5LKlg9XfMveXmOMxFQZCDrPE40nba9VUq8,816
32
- diracx/client/patches/utils.py,sha256=rsw76XnstQgTxjqs5p95jwFsPuR3zkt5JTBc8VhqoAs,10733
33
- diracx/client/patches/auth/aio.py,sha256=uqnz06XKLEwb6Iu8kqf2I7JVokQNQSoRfIMKpsm8Dog,2286
32
+ diracx/client/patches/utils.py,sha256=jWRSYPJXTSHtdKswxkDwpuHZ4hxIPfn0jtPxq24zNOs,10738
33
+ diracx/client/patches/auth/aio.py,sha256=mgjEPoVqv3LHUc_5x-tojiLtTL5aspxw4gl3tIsG-j8,2291
34
34
  diracx/client/patches/auth/common.py,sha256=7YVuFsfD4OahbLILSgtaG6VsyN1qSA7WCieC524wATQ,2617
35
35
  diracx/client/patches/auth/sync.py,sha256=2WY-sEVbYIrGBG1BKGgkdfAoo_xYtJnuRl4Be7THrPg,2016
36
36
  diracx/client/patches/client/aio.py,sha256=GYUVCgSvlEeJnjVoqdorBAEdP4H6JoC_4L8tlvtAZIE,5330
37
- diracx/client/patches/client/common.py,sha256=sWQ4-2iMHl5kwQzfAhny89uOWo8paoYpgp15Ak0UP5c,6243
37
+ diracx/client/patches/client/common.py,sha256=ulQXULI9OyGJf3qcMmXk5XYZgjiQv4y_iGKdVUcCaOs,6248
38
38
  diracx/client/patches/client/sync.py,sha256=AVfGtr0O8KsfX2TrtikftfSNFrZRIaujz_MOuaHKk3U,4720
39
39
  diracx/client/patches/jobs/aio.py,sha256=8zUlwKPyx0yUkoxEjUkdYZcErs9jSv1ZEnZTHQeihI4,2047
40
- diracx/client/patches/jobs/common.py,sha256=fTlQKEg06RSGG4ccFn-Mk_zSlZofPbpAJCzNtAZrPJA,4263
40
+ diracx/client/patches/jobs/common.py,sha256=xARjsC-b1cmKRt2W3muFP1KCJWancdJPON--_QGl2j0,4270
41
41
  diracx/client/patches/jobs/sync.py,sha256=3tJDAm4Hq0X8DztJtjWPv69UzvIEcv195BG1fruoUN4,1977
42
42
  _diracx_client_importer.pth,sha256=wJwJieKpvzPdCVaM-1oKiKN8OL3wBaHgrl8qyexFoKY,31
43
- diracx_client-0.0.7.dist-info/METADATA,sha256=kfIcUUdJkAmBbmISPUhAKRvz2fq00M5oFMwQv1ASRYY,603
44
- diracx_client-0.0.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
45
- diracx_client-0.0.7.dist-info/RECORD,,
43
+ diracx_client-0.0.8.dist-info/METADATA,sha256=mHonUUneGcz6C4KPJEQEn7HelWy0plBRAJ3lYItrkOw,603
44
+ diracx_client-0.0.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
45
+ diracx_client-0.0.8.dist-info/RECORD,,