diracx-client 0.0.1a29__py3-none-any.whl → 0.0.1a32__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.
@@ -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.28.3)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.31.0)
4
4
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
5
  # --------------------------------------------------------------------------
6
6
  # pylint: disable=wrong-import-position
@@ -12,9 +12,8 @@ if TYPE_CHECKING:
12
12
 
13
13
 
14
14
  from ._models import ( # type: ignore
15
- BodyAuthToken,
16
- BodyAuthTokenGrantType,
17
- DevelopmentSettings,
15
+ BodyAuthGetOidcToken,
16
+ BodyAuthGetOidcTokenGrantType,
18
17
  GroupInfo,
19
18
  HTTPValidationError,
20
19
  InitiateDeviceFlowResponse,
@@ -25,6 +24,7 @@ from ._models import ( # type: ignore
25
24
  JobSummaryParams,
26
25
  JobSummaryParamsSearchItem,
27
26
  Metadata,
27
+ OpenIDConfiguration,
28
28
  SandboxDownloadResponse,
29
29
  SandboxInfo,
30
30
  SandboxUploadResponse,
@@ -57,9 +57,8 @@ from ._patch import *
57
57
  from ._patch import patch_sdk as _patch_sdk
58
58
 
59
59
  __all__ = [
60
- "BodyAuthToken",
61
- "BodyAuthTokenGrantType",
62
- "DevelopmentSettings",
60
+ "BodyAuthGetOidcToken",
61
+ "BodyAuthGetOidcTokenGrantType",
63
62
  "GroupInfo",
64
63
  "HTTPValidationError",
65
64
  "InitiateDeviceFlowResponse",
@@ -70,6 +69,7 @@ __all__ = [
70
69
  "JobSummaryParams",
71
70
  "JobSummaryParamsSearchItem",
72
71
  "Metadata",
72
+ "OpenIDConfiguration",
73
73
  "SandboxDownloadResponse",
74
74
  "SandboxInfo",
75
75
  "SandboxUploadResponse",
@@ -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.28.3)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.31.0)
4
4
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
5
  # --------------------------------------------------------------------------
6
6
 
@@ -1,33 +1,26 @@
1
1
  # pylint: disable=too-many-lines
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.28.3)
4
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.31.0)
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
10
9
  from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
11
10
 
12
11
  from .. import _serialization
13
12
 
14
- if sys.version_info >= (3, 9):
15
- from collections.abc import MutableMapping
16
- else:
17
- from typing import MutableMapping # type: ignore
18
-
19
13
  if TYPE_CHECKING:
20
14
  from .. import models as _models
21
- JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
22
15
 
23
16
 
24
- class BodyAuthToken(_serialization.Model):
25
- """Body_auth_token.
17
+ class BodyAuthGetOidcToken(_serialization.Model):
18
+ """Body_auth_get_oidc_token.
26
19
 
27
20
  All required parameters must be populated in order to send to server.
28
21
 
29
22
  :ivar grant_type: OAuth2 Grant type. Required.
30
- :vartype grant_type: ~generated.models.BodyAuthTokenGrantType
23
+ :vartype grant_type: ~generated.models.BodyAuthGetOidcTokenGrantType
31
24
  :ivar client_id: OAuth2 client id. Required.
32
25
  :vartype client_id: str
33
26
  :ivar device_code: device code for OAuth2 device flow.
@@ -49,7 +42,7 @@ class BodyAuthToken(_serialization.Model):
49
42
  }
50
43
 
51
44
  _attribute_map = {
52
- "grant_type": {"key": "grant_type", "type": "BodyAuthTokenGrantType"},
45
+ "grant_type": {"key": "grant_type", "type": "BodyAuthGetOidcTokenGrantType"},
53
46
  "client_id": {"key": "client_id", "type": "str"},
54
47
  "device_code": {"key": "device_code", "type": "str"},
55
48
  "code": {"key": "code", "type": "str"},
@@ -61,7 +54,7 @@ class BodyAuthToken(_serialization.Model):
61
54
  def __init__(
62
55
  self,
63
56
  *,
64
- grant_type: "_models.BodyAuthTokenGrantType",
57
+ grant_type: "_models.BodyAuthGetOidcTokenGrantType",
65
58
  client_id: str,
66
59
  device_code: Optional[str] = None,
67
60
  code: Optional[str] = None,
@@ -72,7 +65,7 @@ class BodyAuthToken(_serialization.Model):
72
65
  ) -> None:
73
66
  """
74
67
  :keyword grant_type: OAuth2 Grant type. Required.
75
- :paramtype grant_type: ~generated.models.BodyAuthTokenGrantType
68
+ :paramtype grant_type: ~generated.models.BodyAuthGetOidcTokenGrantType
76
69
  :keyword client_id: OAuth2 client id. Required.
77
70
  :paramtype client_id: str
78
71
  :keyword device_code: device code for OAuth2 device flow.
@@ -97,35 +90,10 @@ class BodyAuthToken(_serialization.Model):
97
90
  self.refresh_token = refresh_token
98
91
 
99
92
 
100
- class BodyAuthTokenGrantType(_serialization.Model):
93
+ class BodyAuthGetOidcTokenGrantType(_serialization.Model):
101
94
  """OAuth2 Grant type."""
102
95
 
103
96
 
104
- class DevelopmentSettings(_serialization.Model):
105
- """Settings for the Development Configuration that can influence run time.
106
-
107
- :ivar crash_on_missed_access_policy: Crash On Missed Access Policy.
108
- :vartype crash_on_missed_access_policy: bool
109
- """
110
-
111
- _attribute_map = {
112
- "crash_on_missed_access_policy": {
113
- "key": "crash_on_missed_access_policy",
114
- "type": "bool",
115
- },
116
- }
117
-
118
- def __init__(
119
- self, *, crash_on_missed_access_policy: bool = False, **kwargs: Any
120
- ) -> None:
121
- """
122
- :keyword crash_on_missed_access_policy: Crash On Missed Access Policy.
123
- :paramtype crash_on_missed_access_policy: bool
124
- """
125
- super().__init__(**kwargs)
126
- self.crash_on_missed_access_policy = crash_on_missed_access_policy
127
-
128
-
129
97
  class GroupInfo(_serialization.Model):
130
98
  """GroupInfo.
131
99
 
@@ -444,41 +412,158 @@ class Metadata(_serialization.Model):
444
412
 
445
413
  :ivar virtual_organizations: Virtual Organizations. Required.
446
414
  :vartype virtual_organizations: dict[str, ~generated.models.VOInfo]
447
- :ivar development_settings: Settings for the Development Configuration that can influence run
448
- time. Required.
449
- :vartype development_settings: ~generated.models.DevelopmentSettings
450
415
  """
451
416
 
452
417
  _validation = {
453
418
  "virtual_organizations": {"required": True},
454
- "development_settings": {"required": True},
455
419
  }
456
420
 
457
421
  _attribute_map = {
458
422
  "virtual_organizations": {"key": "virtual_organizations", "type": "{VOInfo}"},
459
- "development_settings": {
460
- "key": "development_settings",
461
- "type": "DevelopmentSettings",
423
+ }
424
+
425
+ def __init__(
426
+ self, *, virtual_organizations: Dict[str, "_models.VOInfo"], **kwargs: Any
427
+ ) -> None:
428
+ """
429
+ :keyword virtual_organizations: Virtual Organizations. Required.
430
+ :paramtype virtual_organizations: dict[str, ~generated.models.VOInfo]
431
+ """
432
+ super().__init__(**kwargs)
433
+ self.virtual_organizations = virtual_organizations
434
+
435
+
436
+ class OpenIDConfiguration(_serialization.Model):
437
+ """OpenIDConfiguration.
438
+
439
+ All required parameters must be populated in order to send to server.
440
+
441
+ :ivar issuer: Issuer. Required.
442
+ :vartype issuer: str
443
+ :ivar token_endpoint: Token Endpoint. Required.
444
+ :vartype token_endpoint: str
445
+ :ivar userinfo_endpoint: Userinfo Endpoint. Required.
446
+ :vartype userinfo_endpoint: str
447
+ :ivar authorization_endpoint: Authorization Endpoint. Required.
448
+ :vartype authorization_endpoint: str
449
+ :ivar device_authorization_endpoint: Device Authorization Endpoint. Required.
450
+ :vartype device_authorization_endpoint: str
451
+ :ivar grant_types_supported: Grant Types Supported. Required.
452
+ :vartype grant_types_supported: list[str]
453
+ :ivar scopes_supported: Scopes Supported. Required.
454
+ :vartype scopes_supported: list[str]
455
+ :ivar response_types_supported: Response Types Supported. Required.
456
+ :vartype response_types_supported: list[str]
457
+ :ivar token_endpoint_auth_signing_alg_values_supported: Token Endpoint Auth Signing Alg Values
458
+ Supported. Required.
459
+ :vartype token_endpoint_auth_signing_alg_values_supported: list[str]
460
+ :ivar token_endpoint_auth_methods_supported: Token Endpoint Auth Methods Supported. Required.
461
+ :vartype token_endpoint_auth_methods_supported: list[str]
462
+ :ivar code_challenge_methods_supported: Code Challenge Methods Supported. Required.
463
+ :vartype code_challenge_methods_supported: list[str]
464
+ """
465
+
466
+ _validation = {
467
+ "issuer": {"required": True},
468
+ "token_endpoint": {"required": True},
469
+ "userinfo_endpoint": {"required": True},
470
+ "authorization_endpoint": {"required": True},
471
+ "device_authorization_endpoint": {"required": True},
472
+ "grant_types_supported": {"required": True},
473
+ "scopes_supported": {"required": True},
474
+ "response_types_supported": {"required": True},
475
+ "token_endpoint_auth_signing_alg_values_supported": {"required": True},
476
+ "token_endpoint_auth_methods_supported": {"required": True},
477
+ "code_challenge_methods_supported": {"required": True},
478
+ }
479
+
480
+ _attribute_map = {
481
+ "issuer": {"key": "issuer", "type": "str"},
482
+ "token_endpoint": {"key": "token_endpoint", "type": "str"},
483
+ "userinfo_endpoint": {"key": "userinfo_endpoint", "type": "str"},
484
+ "authorization_endpoint": {"key": "authorization_endpoint", "type": "str"},
485
+ "device_authorization_endpoint": {
486
+ "key": "device_authorization_endpoint",
487
+ "type": "str",
488
+ },
489
+ "grant_types_supported": {"key": "grant_types_supported", "type": "[str]"},
490
+ "scopes_supported": {"key": "scopes_supported", "type": "[str]"},
491
+ "response_types_supported": {
492
+ "key": "response_types_supported",
493
+ "type": "[str]",
494
+ },
495
+ "token_endpoint_auth_signing_alg_values_supported": {
496
+ "key": "token_endpoint_auth_signing_alg_values_supported",
497
+ "type": "[str]",
498
+ },
499
+ "token_endpoint_auth_methods_supported": {
500
+ "key": "token_endpoint_auth_methods_supported",
501
+ "type": "[str]",
502
+ },
503
+ "code_challenge_methods_supported": {
504
+ "key": "code_challenge_methods_supported",
505
+ "type": "[str]",
462
506
  },
463
507
  }
464
508
 
465
509
  def __init__(
466
510
  self,
467
511
  *,
468
- virtual_organizations: Dict[str, "_models.VOInfo"],
469
- development_settings: "_models.DevelopmentSettings",
512
+ issuer: str,
513
+ token_endpoint: str,
514
+ userinfo_endpoint: str,
515
+ authorization_endpoint: str,
516
+ device_authorization_endpoint: str,
517
+ grant_types_supported: List[str],
518
+ scopes_supported: List[str],
519
+ response_types_supported: List[str],
520
+ token_endpoint_auth_signing_alg_values_supported: List[str],
521
+ token_endpoint_auth_methods_supported: List[str],
522
+ code_challenge_methods_supported: List[str],
470
523
  **kwargs: Any,
471
524
  ) -> None:
472
525
  """
473
- :keyword virtual_organizations: Virtual Organizations. Required.
474
- :paramtype virtual_organizations: dict[str, ~generated.models.VOInfo]
475
- :keyword development_settings: Settings for the Development Configuration that can influence
476
- run time. Required.
477
- :paramtype development_settings: ~generated.models.DevelopmentSettings
526
+ :keyword issuer: Issuer. Required.
527
+ :paramtype issuer: str
528
+ :keyword token_endpoint: Token Endpoint. Required.
529
+ :paramtype token_endpoint: str
530
+ :keyword userinfo_endpoint: Userinfo Endpoint. Required.
531
+ :paramtype userinfo_endpoint: str
532
+ :keyword authorization_endpoint: Authorization Endpoint. Required.
533
+ :paramtype authorization_endpoint: str
534
+ :keyword device_authorization_endpoint: Device Authorization Endpoint. Required.
535
+ :paramtype device_authorization_endpoint: str
536
+ :keyword grant_types_supported: Grant Types Supported. Required.
537
+ :paramtype grant_types_supported: list[str]
538
+ :keyword scopes_supported: Scopes Supported. Required.
539
+ :paramtype scopes_supported: list[str]
540
+ :keyword response_types_supported: Response Types Supported. Required.
541
+ :paramtype response_types_supported: list[str]
542
+ :keyword token_endpoint_auth_signing_alg_values_supported: Token Endpoint Auth Signing Alg
543
+ Values Supported. Required.
544
+ :paramtype token_endpoint_auth_signing_alg_values_supported: list[str]
545
+ :keyword token_endpoint_auth_methods_supported: Token Endpoint Auth Methods Supported.
546
+ Required.
547
+ :paramtype token_endpoint_auth_methods_supported: list[str]
548
+ :keyword code_challenge_methods_supported: Code Challenge Methods Supported. Required.
549
+ :paramtype code_challenge_methods_supported: list[str]
478
550
  """
479
551
  super().__init__(**kwargs)
480
- self.virtual_organizations = virtual_organizations
481
- self.development_settings = development_settings
552
+ self.issuer = issuer
553
+ self.token_endpoint = token_endpoint
554
+ self.userinfo_endpoint = userinfo_endpoint
555
+ self.authorization_endpoint = authorization_endpoint
556
+ self.device_authorization_endpoint = device_authorization_endpoint
557
+ self.grant_types_supported = grant_types_supported
558
+ self.scopes_supported = scopes_supported
559
+ self.response_types_supported = response_types_supported
560
+ self.token_endpoint_auth_signing_alg_values_supported = (
561
+ token_endpoint_auth_signing_alg_values_supported
562
+ )
563
+ self.token_endpoint_auth_methods_supported = (
564
+ token_endpoint_auth_methods_supported
565
+ )
566
+ self.code_challenge_methods_supported = code_challenge_methods_supported
482
567
 
483
568
 
484
569
  class SandboxDownloadResponse(_serialization.Model):
@@ -923,7 +1008,7 @@ class UserInfoResponse(_serialization.Model):
923
1008
  :ivar dirac_group: Dirac Group. Required.
924
1009
  :vartype dirac_group: str
925
1010
  :ivar policies: Policies. Required.
926
- :vartype policies: JSON
1011
+ :vartype policies: dict[str, any]
927
1012
  :ivar properties: Properties. Required.
928
1013
  :vartype properties: list[str]
929
1014
  :ivar preferred_username: Preferred Username. Required.
@@ -943,7 +1028,7 @@ class UserInfoResponse(_serialization.Model):
943
1028
  "sub": {"key": "sub", "type": "str"},
944
1029
  "vo": {"key": "vo", "type": "str"},
945
1030
  "dirac_group": {"key": "dirac_group", "type": "str"},
946
- "policies": {"key": "policies", "type": "object"},
1031
+ "policies": {"key": "policies", "type": "{object}"},
947
1032
  "properties": {"key": "properties", "type": "[str]"},
948
1033
  "preferred_username": {"key": "preferred_username", "type": "str"},
949
1034
  }
@@ -954,7 +1039,7 @@ class UserInfoResponse(_serialization.Model):
954
1039
  sub: str,
955
1040
  vo: str,
956
1041
  dirac_group: str,
957
- policies: JSON,
1042
+ policies: Dict[str, Any],
958
1043
  properties: List[str],
959
1044
  preferred_username: str,
960
1045
  **kwargs: Any,
@@ -967,7 +1052,7 @@ class UserInfoResponse(_serialization.Model):
967
1052
  :keyword dirac_group: Dirac Group. Required.
968
1053
  :paramtype dirac_group: str
969
1054
  :keyword policies: Policies. Required.
970
- :paramtype policies: JSON
1055
+ :paramtype policies: dict[str, any]
971
1056
  :keyword properties: Properties. Required.
972
1057
  :paramtype properties: list[str]
973
1058
  :keyword preferred_username: Preferred Username. Required.
@@ -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.28.3)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.31.0)
4
4
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
5
  # --------------------------------------------------------------------------
6
6
  # pylint: disable=wrong-import-position