graphiant-sdk 25.12.1__py3-none-any.whl → 26.1.1__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.
- graphiant_sdk/__init__.py +2982 -1471
- graphiant_sdk/api/default_api.py +1712 -23
- graphiant_sdk/api_client.py +16 -9
- graphiant_sdk/configuration.py +9 -3
- graphiant_sdk/exceptions.py +6 -3
- graphiant_sdk/models/__init__.py +19 -1
- graphiant_sdk/models/assurance_dns_proxy_entry.py +97 -0
- graphiant_sdk/models/iam_customer.py +6 -2
- graphiant_sdk/models/mana_v2_b2b_extranet_service_customer_match_details.py +15 -2
- graphiant_sdk/models/mana_v2_device.py +7 -1
- graphiant_sdk/models/mana_v2_edge_device_config.py +7 -1
- graphiant_sdk/models/mana_v2_interface.py +7 -1
- graphiant_sdk/models/mana_v2_interface_config.py +7 -1
- graphiant_sdk/models/mana_v2_interface_ma_csec.py +115 -0
- graphiant_sdk/models/mana_v2_lag_interface_config.py +7 -1
- graphiant_sdk/models/mana_v2_ma_csec_configuration.py +150 -0
- graphiant_sdk/models/mana_v2_nullable_ma_csec_configuration.py +91 -0
- graphiant_sdk/models/mana_v2_nullable_psk_configuration.py +91 -0
- graphiant_sdk/models/mana_v2_nullable_sak_configuration.py +91 -0
- graphiant_sdk/models/mana_v2_nullable_sla_conformance.py +91 -0
- graphiant_sdk/models/mana_v2_psk_configuration.py +99 -0
- graphiant_sdk/models/mana_v2_sak_configuration.py +93 -0
- graphiant_sdk/models/mana_v2_sla_conformance.py +91 -0
- graphiant_sdk/models/v1_auth_login_post_response.py +10 -2
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py +87 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py +87 -0
- graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_request.py +91 -0
- graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_response.py +87 -0
- graphiant_sdk/models/v2_assurance_read_dnsproxy_list_get_response.py +95 -0
- graphiant_sdk/models/v2_assurance_update_dnsproxy_entry_post_request.py +91 -0
- graphiant_sdk/rest.py +7 -2
- {graphiant_sdk-25.12.1.dist-info → graphiant_sdk-26.1.1.dist-info}/METADATA +5 -3
- {graphiant_sdk-25.12.1.dist-info → graphiant_sdk-26.1.1.dist-info}/RECORD +56 -20
- {graphiant_sdk-25.12.1.dist-info → graphiant_sdk-26.1.1.dist-info}/WHEEL +1 -1
- test/test_assurance_dns_proxy_entry.py +70 -0
- test/test_mana_v2_interface_ma_csec.py +72 -0
- test/test_mana_v2_ma_csec_configuration.py +124 -0
- test/test_mana_v2_nullable_ma_csec_configuration.py +90 -0
- test/test_mana_v2_nullable_psk_configuration.py +58 -0
- test/test_mana_v2_nullable_sak_configuration.py +55 -0
- test/test_mana_v2_nullable_sla_conformance.py +54 -0
- test/test_mana_v2_psk_configuration.py +57 -0
- test/test_mana_v2_sak_configuration.py +54 -0
- test/test_mana_v2_sla_conformance.py +53 -0
- test/test_v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py +60 -0
- test/test_v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py +51 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py +54 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py +51 -0
- test/test_v2_assurance_create_dnsproxy_entry_post_request.py +61 -0
- test/test_v2_assurance_create_dnsproxy_entry_post_response.py +51 -0
- test/test_v2_assurance_read_dnsproxy_list_get_response.py +63 -0
- test/test_v2_assurance_update_dnsproxy_entry_post_request.py +61 -0
- {graphiant_sdk-25.12.1.dist-info → graphiant_sdk-26.1.1.dist-info}/licenses/LICENSE +0 -0
- {graphiant_sdk-25.12.1.dist-info → graphiant_sdk-26.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from graphiant_sdk.models.mana_v2_sla_conformance import ManaV2SlaConformance
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ManaV2NullableSlaConformance(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ManaV2NullableSlaConformance
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
sla_conformance: Optional[ManaV2SlaConformance] = Field(default=None, alias="slaConformance")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["slaConformance"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ManaV2NullableSlaConformance from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of sla_conformance
|
|
73
|
+
if self.sla_conformance:
|
|
74
|
+
_dict['slaConformance'] = self.sla_conformance.to_dict()
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of ManaV2NullableSlaConformance from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"slaConformance": ManaV2SlaConformance.from_dict(obj["slaConformance"]) if obj.get("slaConformance") is not None else None
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ManaV2PskConfiguration(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ManaV2PskConfiguration
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
cak: Optional[StrictStr] = Field(default=None, description="The Connection Authentication Key (CAK)")
|
|
31
|
+
cak_cryptographic_algorithm: Optional[StrictStr] = Field(default=None, description="The cryptographic algorithm for the CAK (required)", alias="cakCryptographicAlgorithm")
|
|
32
|
+
ckn: Optional[StrictStr] = Field(default=None, description="The Connection Key Name (CKN) (required)")
|
|
33
|
+
nickname: Optional[StrictStr] = Field(default=None, description="The nickname of the PSK (required)")
|
|
34
|
+
start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["cak", "cakCryptographicAlgorithm", "ckn", "nickname", "startTime"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of ManaV2PskConfiguration from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of start_time
|
|
77
|
+
if self.start_time:
|
|
78
|
+
_dict['startTime'] = self.start_time.to_dict()
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of ManaV2PskConfiguration from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"cak": obj.get("cak"),
|
|
92
|
+
"cakCryptographicAlgorithm": obj.get("cakCryptographicAlgorithm"),
|
|
93
|
+
"ckn": obj.get("ckn"),
|
|
94
|
+
"nickname": obj.get("nickname"),
|
|
95
|
+
"startTime": GoogleProtobufTimestamp.from_dict(obj["startTime"]) if obj.get("startTime") is not None else None
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ManaV2SakConfiguration(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ManaV2SakConfiguration
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
cipher_suite: Optional[StrictStr] = Field(default=None, description="The cipher suite (required)", alias="cipherSuite")
|
|
30
|
+
lag_member_interface_id: Optional[StrictInt] = Field(default=None, description="The interface ID (required for when each lag member has a different MACsec configuration - when split_sak_config_by_lag_member is true) (required)", alias="lagMemberInterfaceId")
|
|
31
|
+
rekey_interval: Optional[StrictInt] = Field(default=None, description="The rekey interval in seconds. 0 means disabled", alias="rekeyInterval")
|
|
32
|
+
replay_protection_window_size: Optional[StrictInt] = Field(default=None, description="The replay protection window size in seconds. 0 means disabled", alias="replayProtectionWindowSize")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["cipherSuite", "lagMemberInterfaceId", "rekeyInterval", "replayProtectionWindowSize"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of ManaV2SakConfiguration from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of ManaV2SakConfiguration from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"cipherSuite": obj.get("cipherSuite"),
|
|
87
|
+
"lagMemberInterfaceId": obj.get("lagMemberInterfaceId"),
|
|
88
|
+
"rekeyInterval": obj.get("rekeyInterval"),
|
|
89
|
+
"replayProtectionWindowSize": obj.get("replayProtectionWindowSize")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ManaV2SlaConformance(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ManaV2SlaConformance
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
dampening_factor: Optional[StrictInt] = Field(default=None, alias="dampeningFactor")
|
|
30
|
+
duration: Optional[StrictInt] = None
|
|
31
|
+
interval: Optional[StrictInt] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["dampeningFactor", "duration", "interval"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of ManaV2SlaConformance from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of ManaV2SlaConformance from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"dampeningFactor": obj.get("dampeningFactor"),
|
|
86
|
+
"duration": obj.get("duration"),
|
|
87
|
+
"interval": obj.get("interval")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -29,7 +29,11 @@ class V1AuthLoginPostResponse(BaseModel):
|
|
|
29
29
|
auth: Optional[StrictBool] = None
|
|
30
30
|
token: Optional[StrictStr] = None
|
|
31
31
|
account_type: Optional[StrictStr] = Field(default=None, alias="accountType")
|
|
32
|
-
|
|
32
|
+
email: Optional[StrictStr] = Field(default=None, description="User email address (returned for MFA users)")
|
|
33
|
+
mfa_type: Optional[StrictStr] = Field(default=None, description="MFA type (returned for MFA users)", alias="mfaType")
|
|
34
|
+
state_token: Optional[StrictStr] = Field(default=None, description="State token for MFA verification (returned for MFA users)", alias="stateToken")
|
|
35
|
+
status: Optional[StrictStr] = Field(default=None, description="Authentication status (returned for MFA users)")
|
|
36
|
+
__properties: ClassVar[List[str]] = ["auth", "token", "accountType", "email", "mfaType", "stateToken", "status"]
|
|
33
37
|
|
|
34
38
|
@field_validator('account_type')
|
|
35
39
|
def account_type_validate_enum(cls, value):
|
|
@@ -94,7 +98,11 @@ class V1AuthLoginPostResponse(BaseModel):
|
|
|
94
98
|
_obj = cls.model_validate({
|
|
95
99
|
"auth": obj.get("auth"),
|
|
96
100
|
"token": obj.get("token"),
|
|
97
|
-
"accountType": obj.get("accountType")
|
|
101
|
+
"accountType": obj.get("accountType"),
|
|
102
|
+
"email": obj.get("email"),
|
|
103
|
+
"mfaType": obj.get("mfaType"),
|
|
104
|
+
"stateToken": obj.get("stateToken"),
|
|
105
|
+
"status": obj.get("status")
|
|
98
106
|
})
|
|
99
107
|
return _obj
|
|
100
108
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from graphiant_sdk.models.mana_v2_b2b_nat import ManaV2B2bNat
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
service_prefixes: List[ManaV2B2bNat] = Field(alias="servicePrefixes")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["servicePrefixes"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in service_prefixes (list)
|
|
73
|
+
_items = []
|
|
74
|
+
if self.service_prefixes:
|
|
75
|
+
for _item_service_prefixes in self.service_prefixes:
|
|
76
|
+
if _item_service_prefixes:
|
|
77
|
+
_items.append(_item_service_prefixes.to_dict())
|
|
78
|
+
_dict['servicePrefixes'] = _items
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"servicePrefixes": [ManaV2B2bNat.from_dict(_item) for _item in obj["servicePrefixes"]] if obj.get("servicePrefixes") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
consumer_activiy_id: Optional[StrictStr] = Field(default=None, alias="consumerActiviyId")
|
|
30
|
+
__properties: ClassVar[List[str]] = ["consumerActiviyId"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"consumerActiviyId": obj.get("consumerActiviyId")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictInt = Field(description="match ID for the customer's service subscription (required)")
|
|
30
|
+
status: StrictStr = Field(description="Customer’s service status: Paused or Active (required)")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["id", "status"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"id": obj.get("id"),
|
|
85
|
+
"status": obj.get("status")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|