graphiant-sdk 25.10.1__py3-none-any.whl → 25.10.2__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.
Files changed (84) hide show
  1. graphiant_sdk/__init__.py +62 -1290
  2. graphiant_sdk/api/__init__.py +1 -16
  3. graphiant_sdk/api/default_api.py +6589 -7804
  4. graphiant_sdk/api_client.py +5 -5
  5. graphiant_sdk/configuration.py +1 -1
  6. graphiant_sdk/models/__init__.py +31 -1246
  7. graphiant_sdk/models/v1_auth_login_temp_post_request.py +6 -4
  8. graphiant_sdk/models/v1_devices_device_id_config_put_request_core_core_vrf_bgp_neighbors_value_neighbor.py +6 -6
  9. graphiant_sdk/models/v1_devices_device_id_config_put_request_core_core_vrf_bgp_redistribution_value.py +3 -3
  10. graphiant_sdk/models/v1_devices_device_id_config_put_request_edge_site_to_site_vpn_value_site_to_site_vpn.py +3 -3
  11. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response.py +166 -0
  12. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_ipsec_tunnel_config_inner.py +150 -0
  13. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details.py +109 -0
  14. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_customer.py +94 -0
  15. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service.py +95 -0
  16. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service_prefixes_inner.py +91 -0
  17. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get200_response.py +95 -0
  18. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post200_response.py +109 -0
  19. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py +140 -0
  20. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_global_object_ops_value.py +87 -0
  21. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_policy_inner.py +89 -0
  22. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn.py +95 -0
  23. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +117 -0
  24. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +97 -0
  25. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +115 -0
  26. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value.py +91 -0
  27. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value_family.py +98 -0
  28. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password.py +87 -0
  29. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +87 -0
  30. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +93 -0
  31. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post200_response.py +7 -5
  32. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py +93 -0
  33. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service.py +112 -0
  34. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service_nat_inner.py +89 -0
  35. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner.py +89 -0
  36. graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response.py +95 -0
  37. graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response_info_inner.py +104 -0
  38. graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request_policy.py +19 -4
  39. graphiant_sdk/models/v1_extranets_b2b_post_request_policy.py +33 -4
  40. graphiant_sdk/models/v1_extranets_b2b_post_request_policy_global_object_device_summaries_value.py +95 -0
  41. graphiant_sdk/models/v1_extranets_b2b_post_request_policy_global_object_device_summaries_value_routing_policies_inner.py +114 -0
  42. graphiant_sdk/models/v1_extranets_get200_response_policies_inner_branches_excluded_devices_inner_ipsec_tunnels_inner.py +3 -3
  43. graphiant_sdk/models/v1_extranets_get200_response_policies_inner_branches_excluded_devices_inner_region.py +5 -3
  44. graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get200_response.py +103 -0
  45. graphiant_sdk/models/v1_gateways_put_request_details.py +3 -3
  46. graphiant_sdk/models/v1_global_config_patch_request_snmps_value_config_notify_filter_profiles_value_notify_filter_profile.py +3 -3
  47. graphiant_sdk/models/v1_invitation_email_post_request.py +3 -1
  48. graphiant_sdk/models/v1_temp_password_put_request.py +4 -2
  49. graphiant_sdk/models/v2_assistant_conversation_interface_state_get200_response.py +87 -0
  50. {graphiant_sdk-25.10.1.dist-info → graphiant_sdk-25.10.2.dist-info}/METADATA +3 -4
  51. {graphiant_sdk-25.10.1.dist-info → graphiant_sdk-25.10.2.dist-info}/RECORD +84 -24
  52. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response.py +224 -0
  53. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_ipsec_tunnel_config_inner.py +82 -0
  54. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details.py +74 -0
  55. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_customer.py +56 -0
  56. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service.py +57 -0
  57. test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service_prefixes_inner.py +53 -0
  58. test/test_v1_extranets_b2b_peering_consumer_match_id_match_details_get200_response.py +77 -0
  59. test/test_v1_extranets_b2b_peering_consumer_match_id_post200_response.py +74 -0
  60. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request.py +130 -0
  61. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_global_object_ops_value.py +53 -0
  62. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_policy_inner.py +54 -0
  63. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn.py +92 -0
  64. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +87 -0
  65. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +69 -0
  66. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +64 -0
  67. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value.py +56 -0
  68. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value_family.py +55 -0
  69. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password.py +51 -0
  70. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +53 -0
  71. test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +54 -0
  72. test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request.py +65 -0
  73. test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service.py +63 -0
  74. test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service_nat_inner.py +52 -0
  75. test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner.py +52 -0
  76. test/test_v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response.py +64 -0
  77. test/test_v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response_info_inner.py +61 -0
  78. test/test_v1_extranets_b2b_post_request_policy_global_object_device_summaries_value.py +67 -0
  79. test/test_v1_extranets_b2b_post_request_policy_global_object_device_summaries_value_routing_policies_inner.py +64 -0
  80. test/test_v1_gateways_guest_consumer_match_id_get200_response.py +131 -0
  81. test/test_v2_assistant_conversation_interface_state_get200_response.py +51 -0
  82. {graphiant_sdk-25.10.1.dist-info → graphiant_sdk-25.10.2.dist-info}/WHEEL +0 -0
  83. {graphiant_sdk-25.10.1.dist-info → graphiant_sdk-25.10.2.dist-info}/licenses/LICENSE +0 -0
  84. {graphiant_sdk-25.10.1.dist-info → graphiant_sdk-25.10.2.dist-info}/top_level.txt +0 -0
@@ -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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue(BaseModel):
26
+ """
27
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue
28
+ """ # noqa: E501
29
+ routing_policy_ops: Optional[Dict[str, StrictStr]] = Field(default=None, alias="routingPolicyOps")
30
+ __properties: ClassVar[List[str]] = ["routingPolicyOps"]
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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue 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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue 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
+ "routingPolicyOps": obj.get("routingPolicyOps")
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, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequestPolicyInner(BaseModel):
26
+ """
27
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestPolicyInner
28
+ """ # noqa: E501
29
+ consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes")
30
+ lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment")
31
+ __properties: ClassVar[List[str]] = ["consumerPrefixes", "lanSegment"]
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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestPolicyInner 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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestPolicyInner 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
+ "consumerPrefixes": obj.get("consumerPrefixes"),
85
+ "lanSegment": obj.get("lanSegment")
86
+ })
87
+ return _obj
88
+
89
+
@@ -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, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpn(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpn
29
+ """ # noqa: E501
30
+ emails: Optional[List[StrictStr]] = None
31
+ ipsec_gateway_details: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails] = Field(default=None, alias="ipsecGatewayDetails")
32
+ region_id: Optional[StrictInt] = Field(default=None, alias="regionId")
33
+ __properties: ClassVar[List[str]] = ["emails", "ipsecGatewayDetails", "regionId"]
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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpn 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
+ # override the default output from pydantic by calling `to_dict()` of ipsec_gateway_details
75
+ if self.ipsec_gateway_details:
76
+ _dict['ipsecGatewayDetails'] = self.ipsec_gateway_details.to_dict()
77
+ return _dict
78
+
79
+ @classmethod
80
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpn from a dict"""
82
+ if obj is None:
83
+ return None
84
+
85
+ if not isinstance(obj, dict):
86
+ return cls.model_validate(obj)
87
+
88
+ _obj = cls.model_validate({
89
+ "emails": obj.get("emails"),
90
+ "ipsecGatewayDetails": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails.from_dict(obj["ipsecGatewayDetails"]) if obj.get("ipsecGatewayDetails") is not None else None,
91
+ "regionId": obj.get("regionId")
92
+ })
93
+ return _obj
94
+
95
+
@@ -0,0 +1,117 @@
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, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting
24
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1 import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsTunnel1
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails(BaseModel):
29
+ """
30
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails
31
+ """ # noqa: E501
32
+ destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress")
33
+ ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator")
34
+ mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None
35
+ name: Optional[StrictStr] = None
36
+ remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity")
37
+ routing: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting] = None
38
+ tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss")
39
+ tunnel1: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsTunnel1] = None
40
+ tunnel2: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsTunnel1] = None
41
+ vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile")
42
+ __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "mtu", "name", "remoteIkePeerIdentity", "routing", "tcpMss", "tunnel1", "tunnel2", "vpnProfile"]
43
+
44
+ model_config = ConfigDict(
45
+ populate_by_name=True,
46
+ validate_assignment=True,
47
+ protected_namespaces=(),
48
+ )
49
+
50
+
51
+ def to_str(self) -> str:
52
+ """Returns the string representation of the model using alias"""
53
+ return pprint.pformat(self.model_dump(by_alias=True))
54
+
55
+ def to_json(self) -> str:
56
+ """Returns the JSON representation of the model using alias"""
57
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
58
+ return json.dumps(self.to_dict())
59
+
60
+ @classmethod
61
+ def from_json(cls, json_str: str) -> Optional[Self]:
62
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails from a JSON string"""
63
+ return cls.from_dict(json.loads(json_str))
64
+
65
+ def to_dict(self) -> Dict[str, Any]:
66
+ """Return the dictionary representation of the model using alias.
67
+
68
+ This has the following differences from calling pydantic's
69
+ `self.model_dump(by_alias=True)`:
70
+
71
+ * `None` is only added to the output dict for nullable fields that
72
+ were set at model initialization. Other fields with value `None`
73
+ are ignored.
74
+ """
75
+ excluded_fields: Set[str] = set([
76
+ ])
77
+
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ # override the default output from pydantic by calling `to_dict()` of routing
84
+ if self.routing:
85
+ _dict['routing'] = self.routing.to_dict()
86
+ # override the default output from pydantic by calling `to_dict()` of tunnel1
87
+ if self.tunnel1:
88
+ _dict['tunnel1'] = self.tunnel1.to_dict()
89
+ # override the default output from pydantic by calling `to_dict()` of tunnel2
90
+ if self.tunnel2:
91
+ _dict['tunnel2'] = self.tunnel2.to_dict()
92
+ return _dict
93
+
94
+ @classmethod
95
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
96
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetails from a dict"""
97
+ if obj is None:
98
+ return None
99
+
100
+ if not isinstance(obj, dict):
101
+ return cls.model_validate(obj)
102
+
103
+ _obj = cls.model_validate({
104
+ "destinationAddress": obj.get("destinationAddress"),
105
+ "ikeInitiator": obj.get("ikeInitiator"),
106
+ "mtu": obj.get("mtu"),
107
+ "name": obj.get("name"),
108
+ "remoteIkePeerIdentity": obj.get("remoteIkePeerIdentity"),
109
+ "routing": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting.from_dict(obj["routing"]) if obj.get("routing") is not None else None,
110
+ "tcpMss": obj.get("tcpMss"),
111
+ "tunnel1": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsTunnel1.from_dict(obj["tunnel1"]) if obj.get("tunnel1") is not None else None,
112
+ "tunnel2": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsTunnel1.from_dict(obj["tunnel2"]) if obj.get("tunnel2") is not None else None,
113
+ "vpnProfile": obj.get("vpnProfile")
114
+ })
115
+ return _obj
116
+
117
+
@@ -0,0 +1,97 @@
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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingStatic
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting(BaseModel):
28
+ """
29
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting
30
+ """ # noqa: E501
31
+ bgp: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp] = None
32
+ static: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingStatic] = None
33
+ __properties: ClassVar[List[str]] = ["bgp", "static"]
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 V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting 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
+ # override the default output from pydantic by calling `to_dict()` of bgp
75
+ if self.bgp:
76
+ _dict['bgp'] = self.bgp.to_dict()
77
+ # override the default output from pydantic by calling `to_dict()` of static
78
+ if self.static:
79
+ _dict['static'] = self.static.to_dict()
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRouting from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "bgp": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp.from_dict(obj["bgp"]) if obj.get("bgp") is not None else None,
93
+ "static": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingStatic.from_dict(obj["static"]) if obj.get("static") is not None else None
94
+ })
95
+ return _obj
96
+
97
+
@@ -0,0 +1,115 @@
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, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpAddressFamiliesValue
24
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpMd5Password
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp(BaseModel):
29
+ """
30
+ V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp
31
+ """ # noqa: E501
32
+ address_families: Optional[Dict[str, V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpAddressFamiliesValue]] = Field(default=None, alias="addressFamilies")
33
+ hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer")
34
+ keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer")
35
+ md5_password: Optional[V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpMd5Password] = Field(default=None, alias="md5Password")
36
+ peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn")
37
+ send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity")
38
+ __properties: ClassVar[List[str]] = ["addressFamilies", "holdTimer", "keepaliveTimer", "md5Password", "peerAsn", "sendCommunity"]
39
+
40
+ model_config = ConfigDict(
41
+ populate_by_name=True,
42
+ validate_assignment=True,
43
+ protected_namespaces=(),
44
+ )
45
+
46
+
47
+ def to_str(self) -> str:
48
+ """Returns the string representation of the model using alias"""
49
+ return pprint.pformat(self.model_dump(by_alias=True))
50
+
51
+ def to_json(self) -> str:
52
+ """Returns the JSON representation of the model using alias"""
53
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
54
+ return json.dumps(self.to_dict())
55
+
56
+ @classmethod
57
+ def from_json(cls, json_str: str) -> Optional[Self]:
58
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp from a JSON string"""
59
+ return cls.from_dict(json.loads(json_str))
60
+
61
+ def to_dict(self) -> Dict[str, Any]:
62
+ """Return the dictionary representation of the model using alias.
63
+
64
+ This has the following differences from calling pydantic's
65
+ `self.model_dump(by_alias=True)`:
66
+
67
+ * `None` is only added to the output dict for nullable fields that
68
+ were set at model initialization. Other fields with value `None`
69
+ are ignored.
70
+ """
71
+ excluded_fields: Set[str] = set([
72
+ ])
73
+
74
+ _dict = self.model_dump(
75
+ by_alias=True,
76
+ exclude=excluded_fields,
77
+ exclude_none=True,
78
+ )
79
+ # override the default output from pydantic by calling `to_dict()` of each value in address_families (dict)
80
+ _field_dict = {}
81
+ if self.address_families:
82
+ for _key_address_families in self.address_families:
83
+ if self.address_families[_key_address_families]:
84
+ _field_dict[_key_address_families] = self.address_families[_key_address_families].to_dict()
85
+ _dict['addressFamilies'] = _field_dict
86
+ # override the default output from pydantic by calling `to_dict()` of md5_password
87
+ if self.md5_password:
88
+ _dict['md5Password'] = self.md5_password.to_dict()
89
+ return _dict
90
+
91
+ @classmethod
92
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
+ """Create an instance of V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgp from a dict"""
94
+ if obj is None:
95
+ return None
96
+
97
+ if not isinstance(obj, dict):
98
+ return cls.model_validate(obj)
99
+
100
+ _obj = cls.model_validate({
101
+ "addressFamilies": dict(
102
+ (_k, V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpAddressFamiliesValue.from_dict(_v))
103
+ for _k, _v in obj["addressFamilies"].items()
104
+ )
105
+ if obj.get("addressFamilies") is not None
106
+ else None,
107
+ "holdTimer": obj.get("holdTimer"),
108
+ "keepaliveTimer": obj.get("keepaliveTimer"),
109
+ "md5Password": V1ExtranetsB2bPeeringConsumerMatchIdPostRequestSiteToSiteVpnIpsecGatewayDetailsRoutingBgpMd5Password.from_dict(obj["md5Password"]) if obj.get("md5Password") is not None else None,
110
+ "peerAsn": obj.get("peerAsn"),
111
+ "sendCommunity": obj.get("sendCommunity")
112
+ })
113
+ return _obj
114
+
115
+