diracx-client 0.0.1a15__py3-none-any.whl → 0.0.1a17__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- diracx/client/__init__.py +1 -1
- diracx/client/_client.py +1 -1
- diracx/client/_configuration.py +1 -1
- diracx/client/_patch.py +24 -7
- diracx/client/_serialization.py +1 -1
- diracx/client/_vendor.py +1 -1
- diracx/client/aio/__init__.py +1 -1
- diracx/client/aio/_client.py +1 -1
- diracx/client/aio/_configuration.py +1 -1
- diracx/client/aio/_patch.py +13 -4
- diracx/client/aio/_vendor.py +1 -1
- diracx/client/aio/operations/__init__.py +1 -1
- diracx/client/aio/operations/_operations.py +124 -115
- diracx/client/models/__init__.py +3 -7
- diracx/client/models/_enums.py +13 -18
- diracx/client/models/_models.py +57 -42
- diracx/client/operations/__init__.py +1 -1
- diracx/client/operations/_operations.py +157 -148
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/METADATA +1 -1
- diracx_client-0.0.1a17.dist-info/RECORD +26 -0
- diracx_client-0.0.1a15.dist-info/RECORD +0 -26
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/WHEEL +0 -0
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/top_level.txt +0 -0
diracx/client/models/_enums.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.19)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -9,7 +9,7 @@ from azure.core import CaseInsensitiveEnumMeta
|
|
9
9
|
|
10
10
|
|
11
11
|
class ChecksumAlgorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
12
|
-
"""
|
12
|
+
"""ChecksumAlgorithm."""
|
13
13
|
|
14
14
|
SHA256 = "sha256"
|
15
15
|
|
@@ -26,18 +26,6 @@ class Enum1(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
26
26
|
S256 = "S256"
|
27
27
|
|
28
28
|
|
29
|
-
class Enum11(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
30
|
-
"""Enum11."""
|
31
|
-
|
32
|
-
ASC = "asc"
|
33
|
-
|
34
|
-
|
35
|
-
class Enum12(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
36
|
-
"""Enum12."""
|
37
|
-
|
38
|
-
DSC = "dsc"
|
39
|
-
|
40
|
-
|
41
29
|
class Enum2(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
42
30
|
"""Enum2."""
|
43
31
|
|
@@ -59,7 +47,7 @@ class Enum4(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
59
47
|
|
60
48
|
|
61
49
|
class JobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
62
|
-
"""
|
50
|
+
"""JobStatus."""
|
63
51
|
|
64
52
|
SUBMITTING = "Submitting"
|
65
53
|
RECEIVED = "Received"
|
@@ -79,7 +67,7 @@ class JobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
79
67
|
|
80
68
|
|
81
69
|
class SandboxFormat(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
82
|
-
"""
|
70
|
+
"""SandboxFormat."""
|
83
71
|
|
84
72
|
TAR_BZ2 = "tar.bz2"
|
85
73
|
|
@@ -92,7 +80,7 @@ class SandboxType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
92
80
|
|
93
81
|
|
94
82
|
class ScalarSearchOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
95
|
-
"""
|
83
|
+
"""ScalarSearchOperator."""
|
96
84
|
|
97
85
|
EQ = "eq"
|
98
86
|
NEQ = "neq"
|
@@ -101,8 +89,15 @@ class ScalarSearchOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
101
89
|
LIKE = "like"
|
102
90
|
|
103
91
|
|
92
|
+
class SortDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
93
|
+
"""SortDirection."""
|
94
|
+
|
95
|
+
ASC = "asc"
|
96
|
+
DESC = "desc"
|
97
|
+
|
98
|
+
|
104
99
|
class VectorSearchOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
105
|
-
"""
|
100
|
+
"""VectorSearchOperator."""
|
106
101
|
|
107
102
|
IN_ENUM = "in"
|
108
103
|
NOT_IN = "not in"
|
diracx/client/models/_models.py
CHANGED
@@ -1,18 +1,25 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# pylint: disable=too-many-lines
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.19)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
|
8
8
|
import datetime
|
9
|
+
import sys
|
9
10
|
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
|
10
11
|
|
11
12
|
from .. import _serialization
|
12
13
|
|
14
|
+
if sys.version_info >= (3, 9):
|
15
|
+
from collections.abc import MutableMapping
|
16
|
+
else:
|
17
|
+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
18
|
+
|
13
19
|
if TYPE_CHECKING:
|
14
20
|
# pylint: disable=unused-import,ungrouped-imports
|
15
21
|
from .. import models as _models
|
22
|
+
JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
|
16
23
|
|
17
24
|
|
18
25
|
class BodyAuthToken(_serialization.Model):
|
@@ -144,7 +151,7 @@ class HTTPValidationError(_serialization.Model):
|
|
144
151
|
|
145
152
|
|
146
153
|
class InitiateDeviceFlowResponse(_serialization.Model):
|
147
|
-
"""
|
154
|
+
"""Response for the device flow initiation.
|
148
155
|
|
149
156
|
All required parameters must be populated in order to send to server.
|
150
157
|
|
@@ -319,7 +326,7 @@ class JobStatusReturn(_serialization.Model):
|
|
319
326
|
|
320
327
|
All required parameters must be populated in order to send to server.
|
321
328
|
|
322
|
-
:ivar status:
|
329
|
+
:ivar status: JobStatus. Required. Known values are: "Submitting", "Received", "Checking",
|
323
330
|
"Staging", "Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed",
|
324
331
|
"Failed", "Deleted", "Killed", and "Rescheduled".
|
325
332
|
:vartype status: str or ~client.models.JobStatus
|
@@ -360,9 +367,9 @@ class JobStatusReturn(_serialization.Model):
|
|
360
367
|
**kwargs: Any,
|
361
368
|
) -> None:
|
362
369
|
"""
|
363
|
-
:keyword status:
|
364
|
-
"
|
365
|
-
"
|
370
|
+
:keyword status: JobStatus. Required. Known values are: "Submitting", "Received", "Checking",
|
371
|
+
"Staging", "Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed",
|
372
|
+
"Failed", "Deleted", "Killed", and "Rescheduled".
|
366
373
|
:paramtype status: str or ~client.models.JobStatus
|
367
374
|
:keyword minor_status: Minorstatus. Required.
|
368
375
|
:paramtype minor_status: str
|
@@ -384,9 +391,9 @@ class JobStatusReturn(_serialization.Model):
|
|
384
391
|
class JobStatusUpdate(_serialization.Model):
|
385
392
|
"""JobStatusUpdate.
|
386
393
|
|
387
|
-
:ivar status:
|
388
|
-
"
|
389
|
-
"
|
394
|
+
:ivar status: JobStatus. Known values are: "Submitting", "Received", "Checking", "Staging",
|
395
|
+
"Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed", "Failed",
|
396
|
+
"Deleted", "Killed", and "Rescheduled".
|
390
397
|
:vartype status: str or ~client.models.JobStatus
|
391
398
|
:ivar minor_status: Minorstatus.
|
392
399
|
:vartype minor_status: str
|
@@ -413,9 +420,9 @@ class JobStatusUpdate(_serialization.Model):
|
|
413
420
|
**kwargs: Any,
|
414
421
|
) -> None:
|
415
422
|
"""
|
416
|
-
:keyword status:
|
417
|
-
"
|
418
|
-
"
|
423
|
+
:keyword status: JobStatus. Known values are: "Submitting", "Received", "Checking", "Staging",
|
424
|
+
"Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed", "Failed",
|
425
|
+
"Deleted", "Killed", and "Rescheduled".
|
419
426
|
:paramtype status: str or ~client.models.JobStatus
|
420
427
|
:keyword minor_status: Minorstatus.
|
421
428
|
:paramtype minor_status: str
|
@@ -478,7 +485,7 @@ class LimitedJobStatusReturn(_serialization.Model):
|
|
478
485
|
|
479
486
|
All required parameters must be populated in order to send to server.
|
480
487
|
|
481
|
-
:ivar status:
|
488
|
+
:ivar status: JobStatus. Required. Known values are: "Submitting", "Received", "Checking",
|
482
489
|
"Staging", "Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed",
|
483
490
|
"Failed", "Deleted", "Killed", and "Rescheduled".
|
484
491
|
:vartype status: str or ~client.models.JobStatus
|
@@ -509,9 +516,9 @@ class LimitedJobStatusReturn(_serialization.Model):
|
|
509
516
|
**kwargs: Any,
|
510
517
|
) -> None:
|
511
518
|
"""
|
512
|
-
:keyword status:
|
513
|
-
"
|
514
|
-
"
|
519
|
+
:keyword status: JobStatus. Required. Known values are: "Submitting", "Received", "Checking",
|
520
|
+
"Staging", "Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed",
|
521
|
+
"Failed", "Deleted", "Killed", and "Rescheduled".
|
515
522
|
:paramtype status: str or ~client.models.JobStatus
|
516
523
|
:keyword minor_status: Minorstatus. Required.
|
517
524
|
:paramtype minor_status: str
|
@@ -590,13 +597,13 @@ class SandboxInfo(_serialization.Model):
|
|
590
597
|
|
591
598
|
All required parameters must be populated in order to send to server.
|
592
599
|
|
593
|
-
:ivar checksum_algorithm:
|
600
|
+
:ivar checksum_algorithm: ChecksumAlgorithm. Required. "sha256"
|
594
601
|
:vartype checksum_algorithm: str or ~client.models.ChecksumAlgorithm
|
595
602
|
:ivar checksum: Checksum. Required.
|
596
603
|
:vartype checksum: str
|
597
604
|
:ivar size: Size. Required.
|
598
605
|
:vartype size: int
|
599
|
-
:ivar format:
|
606
|
+
:ivar format: SandboxFormat. Required. "tar.bz2"
|
600
607
|
:vartype format: str or ~client.models.SandboxFormat
|
601
608
|
"""
|
602
609
|
|
@@ -624,13 +631,13 @@ class SandboxInfo(_serialization.Model):
|
|
624
631
|
**kwargs: Any,
|
625
632
|
) -> None:
|
626
633
|
"""
|
627
|
-
:keyword checksum_algorithm:
|
634
|
+
:keyword checksum_algorithm: ChecksumAlgorithm. Required. "sha256"
|
628
635
|
:paramtype checksum_algorithm: str or ~client.models.ChecksumAlgorithm
|
629
636
|
:keyword checksum: Checksum. Required.
|
630
637
|
:paramtype checksum: str
|
631
638
|
:keyword size: Size. Required.
|
632
639
|
:paramtype size: int
|
633
|
-
:keyword format:
|
640
|
+
:keyword format: SandboxFormat. Required. "tar.bz2"
|
634
641
|
:paramtype format: str or ~client.models.SandboxFormat
|
635
642
|
"""
|
636
643
|
super().__init__(**kwargs)
|
@@ -692,7 +699,7 @@ class ScalarSearchSpec(_serialization.Model):
|
|
692
699
|
|
693
700
|
:ivar parameter: Parameter. Required.
|
694
701
|
:vartype parameter: str
|
695
|
-
:ivar operator:
|
702
|
+
:ivar operator: ScalarSearchOperator. Required. Known values are: "eq", "neq", "gt", "lt", and
|
696
703
|
"like".
|
697
704
|
:vartype operator: str or ~client.models.ScalarSearchOperator
|
698
705
|
:ivar value: Value. Required.
|
@@ -722,8 +729,8 @@ class ScalarSearchSpec(_serialization.Model):
|
|
722
729
|
"""
|
723
730
|
:keyword parameter: Parameter. Required.
|
724
731
|
:paramtype parameter: str
|
725
|
-
:keyword operator:
|
726
|
-
"like".
|
732
|
+
:keyword operator: ScalarSearchOperator. Required. Known values are: "eq", "neq", "gt", "lt",
|
733
|
+
and "like".
|
727
734
|
:paramtype operator: str or ~client.models.ScalarSearchOperator
|
728
735
|
:keyword value: Value. Required.
|
729
736
|
:paramtype value: ~client.models.ScalarSearchSpecValue
|
@@ -741,9 +748,9 @@ class ScalarSearchSpecValue(_serialization.Model):
|
|
741
748
|
class SetJobStatusReturn(_serialization.Model):
|
742
749
|
"""SetJobStatusReturn.
|
743
750
|
|
744
|
-
:ivar status:
|
745
|
-
"
|
746
|
-
"
|
751
|
+
:ivar status: JobStatus. Known values are: "Submitting", "Received", "Checking", "Staging",
|
752
|
+
"Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed", "Failed",
|
753
|
+
"Deleted", "Killed", and "Rescheduled".
|
747
754
|
:vartype status: str or ~client.models.JobStatus
|
748
755
|
:ivar minor_status: Minorstatus.
|
749
756
|
:vartype minor_status: str
|
@@ -782,9 +789,9 @@ class SetJobStatusReturn(_serialization.Model):
|
|
782
789
|
**kwargs: Any,
|
783
790
|
) -> None:
|
784
791
|
"""
|
785
|
-
:keyword status:
|
786
|
-
"
|
787
|
-
"
|
792
|
+
:keyword status: JobStatus. Known values are: "Submitting", "Received", "Checking", "Staging",
|
793
|
+
"Waiting", "Matched", "Running", "Stalled", "Completing", "Done", "Completed", "Failed",
|
794
|
+
"Deleted", "Killed", and "Rescheduled".
|
788
795
|
:paramtype status: str or ~client.models.JobStatus
|
789
796
|
:keyword minor_status: Minorstatus.
|
790
797
|
:paramtype minor_status: str
|
@@ -816,8 +823,8 @@ class SortSpec(_serialization.Model):
|
|
816
823
|
|
817
824
|
:ivar parameter: Parameter. Required.
|
818
825
|
:vartype parameter: str
|
819
|
-
:ivar direction:
|
820
|
-
:vartype direction: ~client.models.
|
826
|
+
:ivar direction: SortDirection. Required. Known values are: "asc" and "desc".
|
827
|
+
:vartype direction: str or ~client.models.SortDirection
|
821
828
|
"""
|
822
829
|
|
823
830
|
_validation = {
|
@@ -827,27 +834,27 @@ class SortSpec(_serialization.Model):
|
|
827
834
|
|
828
835
|
_attribute_map = {
|
829
836
|
"parameter": {"key": "parameter", "type": "str"},
|
830
|
-
"direction": {"key": "direction", "type": "
|
837
|
+
"direction": {"key": "direction", "type": "str"},
|
831
838
|
}
|
832
839
|
|
833
840
|
def __init__(
|
834
|
-
self,
|
841
|
+
self,
|
842
|
+
*,
|
843
|
+
parameter: str,
|
844
|
+
direction: Union[str, "_models.SortDirection"],
|
845
|
+
**kwargs: Any,
|
835
846
|
) -> None:
|
836
847
|
"""
|
837
848
|
:keyword parameter: Parameter. Required.
|
838
849
|
:paramtype parameter: str
|
839
|
-
:keyword direction:
|
840
|
-
:paramtype direction: ~client.models.
|
850
|
+
:keyword direction: SortDirection. Required. Known values are: "asc" and "desc".
|
851
|
+
:paramtype direction: str or ~client.models.SortDirection
|
841
852
|
"""
|
842
853
|
super().__init__(**kwargs)
|
843
854
|
self.parameter = parameter
|
844
855
|
self.direction = direction
|
845
856
|
|
846
857
|
|
847
|
-
class SortSpecDirection(_serialization.Model):
|
848
|
-
"""Direction."""
|
849
|
-
|
850
|
-
|
851
858
|
class SupportInfo(_serialization.Model):
|
852
859
|
"""SupportInfo.
|
853
860
|
|
@@ -944,7 +951,7 @@ class TokenResponse(_serialization.Model):
|
|
944
951
|
|
945
952
|
|
946
953
|
class UserInfoResponse(_serialization.Model):
|
947
|
-
"""
|
954
|
+
"""Response for the userinfo endpoint.
|
948
955
|
|
949
956
|
All required parameters must be populated in order to send to server.
|
950
957
|
|
@@ -954,6 +961,8 @@ class UserInfoResponse(_serialization.Model):
|
|
954
961
|
:vartype vo: str
|
955
962
|
:ivar dirac_group: Dirac Group. Required.
|
956
963
|
:vartype dirac_group: str
|
964
|
+
:ivar policies: Policies. Required.
|
965
|
+
:vartype policies: JSON
|
957
966
|
:ivar properties: Properties. Required.
|
958
967
|
:vartype properties: list[str]
|
959
968
|
:ivar preferred_username: Preferred Username. Required.
|
@@ -964,6 +973,7 @@ class UserInfoResponse(_serialization.Model):
|
|
964
973
|
"sub": {"required": True},
|
965
974
|
"vo": {"required": True},
|
966
975
|
"dirac_group": {"required": True},
|
976
|
+
"policies": {"required": True},
|
967
977
|
"properties": {"required": True},
|
968
978
|
"preferred_username": {"required": True},
|
969
979
|
}
|
@@ -972,6 +982,7 @@ class UserInfoResponse(_serialization.Model):
|
|
972
982
|
"sub": {"key": "sub", "type": "str"},
|
973
983
|
"vo": {"key": "vo", "type": "str"},
|
974
984
|
"dirac_group": {"key": "dirac_group", "type": "str"},
|
985
|
+
"policies": {"key": "policies", "type": "object"},
|
975
986
|
"properties": {"key": "properties", "type": "[str]"},
|
976
987
|
"preferred_username": {"key": "preferred_username", "type": "str"},
|
977
988
|
}
|
@@ -982,6 +993,7 @@ class UserInfoResponse(_serialization.Model):
|
|
982
993
|
sub: str,
|
983
994
|
vo: str,
|
984
995
|
dirac_group: str,
|
996
|
+
policies: JSON,
|
985
997
|
properties: List[str],
|
986
998
|
preferred_username: str,
|
987
999
|
**kwargs: Any,
|
@@ -993,6 +1005,8 @@ class UserInfoResponse(_serialization.Model):
|
|
993
1005
|
:paramtype vo: str
|
994
1006
|
:keyword dirac_group: Dirac Group. Required.
|
995
1007
|
:paramtype dirac_group: str
|
1008
|
+
:keyword policies: Policies. Required.
|
1009
|
+
:paramtype policies: JSON
|
996
1010
|
:keyword properties: Properties. Required.
|
997
1011
|
:paramtype properties: list[str]
|
998
1012
|
:keyword preferred_username: Preferred Username. Required.
|
@@ -1002,6 +1016,7 @@ class UserInfoResponse(_serialization.Model):
|
|
1002
1016
|
self.sub = sub
|
1003
1017
|
self.vo = vo
|
1004
1018
|
self.dirac_group = dirac_group
|
1019
|
+
self.policies = policies
|
1005
1020
|
self.properties = properties
|
1006
1021
|
self.preferred_username = preferred_username
|
1007
1022
|
|
@@ -1064,7 +1079,7 @@ class VectorSearchSpec(_serialization.Model):
|
|
1064
1079
|
|
1065
1080
|
:ivar parameter: Parameter. Required.
|
1066
1081
|
:vartype parameter: str
|
1067
|
-
:ivar operator:
|
1082
|
+
:ivar operator: VectorSearchOperator. Required. Known values are: "in" and "not in".
|
1068
1083
|
:vartype operator: str or ~client.models.VectorSearchOperator
|
1069
1084
|
:ivar values: Values. Required.
|
1070
1085
|
:vartype values: ~client.models.VectorSearchSpecValues
|
@@ -1093,7 +1108,7 @@ class VectorSearchSpec(_serialization.Model):
|
|
1093
1108
|
"""
|
1094
1109
|
:keyword parameter: Parameter. Required.
|
1095
1110
|
:paramtype parameter: str
|
1096
|
-
:keyword operator:
|
1111
|
+
:keyword operator: VectorSearchOperator. Required. Known values are: "in" and "not in".
|
1097
1112
|
:paramtype operator: str or ~client.models.VectorSearchOperator
|
1098
1113
|
:keyword values: Values. Required.
|
1099
1114
|
:paramtype values: ~client.models.VectorSearchSpecValues
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.19)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|