graphiant-sdk 25.9.2__py3-none-any.whl → 25.10.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.
Files changed (121) hide show
  1. graphiant_sdk/__init__.py +154 -28
  2. graphiant_sdk/api/default_api.py +13428 -6650
  3. graphiant_sdk/api_client.py +1 -1
  4. graphiant_sdk/configuration.py +1 -1
  5. graphiant_sdk/models/__init__.py +102 -18
  6. graphiant_sdk/models/v1_auth_login_temp_post200_response.py +91 -0
  7. graphiant_sdk/models/v1_auth_login_temp_post_request.py +89 -0
  8. graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response.py +91 -0
  9. graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response_filters.py +104 -0
  10. graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response_filters_customers_inner.py +93 -0
  11. graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post_request.py +91 -0
  12. graphiant_sdk/models/v1_devices_device_id_config_put_request_core_core_vrf_bgp_neighbors_value_neighbor.py +6 -6
  13. graphiant_sdk/models/v1_devices_device_id_config_put_request_edge_site_to_site_vpn_value_site_to_site_vpn.py +3 -3
  14. graphiant_sdk/models/v1_enterprises_get200_response_enterprises_inner.py +3 -1
  15. graphiant_sdk/models/v1_enterprises_patch_request.py +3 -1
  16. graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post200_response.py +87 -0
  17. graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py +95 -0
  18. graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get200_response.py +95 -0
  19. graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get200_response_customers_inner.py +104 -0
  20. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response.py +95 -0
  21. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner.py +109 -0
  22. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_customer.py +94 -0
  23. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_service.py +93 -0
  24. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post200_response.py +109 -0
  25. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request.py +123 -0
  26. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_policy_inner.py +89 -0
  27. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn.py +95 -0
  28. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +117 -0
  29. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +97 -0
  30. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +115 -0
  31. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value.py +91 -0
  32. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value_family.py +98 -0
  33. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password.py +87 -0
  34. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +87 -0
  35. graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +93 -0
  36. graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get200_response.py +96 -0
  37. graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_put_request.py +87 -0
  38. graphiant_sdk/models/v1_extranets_b2b_peering_customer_post200_response.py +93 -0
  39. graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py +95 -0
  40. graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request_invite.py +90 -0
  41. graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post200_response.py +95 -0
  42. graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post_request.py +97 -0
  43. graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post_request_info_inner.py +104 -0
  44. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post200_response.py +95 -0
  45. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put200_response.py +91 -0
  46. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request.py +93 -0
  47. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service.py +112 -0
  48. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service_nat_inner.py +89 -0
  49. graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner.py +89 -0
  50. graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_get200_response.py +95 -0
  51. graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_get200_response_services_inner.py +104 -0
  52. graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get200_response.py +95 -0
  53. graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_put_request.py +91 -0
  54. graphiant_sdk/models/v1_extranets_b2b_peering_producer_post200_response.py +93 -0
  55. graphiant_sdk/models/v1_extranets_b2b_peering_producer_post200_response_policy.py +93 -0
  56. graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py +95 -0
  57. graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request_policy.py +111 -0
  58. graphiant_sdk/models/v1_extranets_b2b_post_request_policy.py +19 -2
  59. graphiant_sdk/models/v1_extranets_b2b_producers_summary_get200_response_info_inner.py +16 -3
  60. graphiant_sdk/models/v1_extranets_get200_response_policies_inner_branches_excluded_devices_inner_ipsec_tunnels_inner.py +3 -3
  61. graphiant_sdk/models/v1_gateways_guest_consumer_get200_response.py +91 -0
  62. graphiant_sdk/models/v1_gateways_put_request_details.py +3 -3
  63. graphiant_sdk/models/v1_groups_get200_response_groups_inner_permissions.py +3 -1
  64. graphiant_sdk/models/v1_invitation_email_post_request.py +95 -0
  65. graphiant_sdk/models/v1_temp_password_put_request.py +91 -0
  66. {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.1.dist-info}/METADATA +3 -3
  67. {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.1.dist-info}/RECORD +121 -19
  68. test/test_v1_auth_login_temp_post200_response.py +53 -0
  69. test/test_v1_auth_login_temp_post_request.py +52 -0
  70. test/test_v1_b2b_extranet_monitoring_filter_post200_response.py +65 -0
  71. test/test_v1_b2b_extranet_monitoring_filter_post200_response_filters.py +64 -0
  72. test/test_v1_b2b_extranet_monitoring_filter_post200_response_filters_customers_inner.py +54 -0
  73. test/test_v1_b2b_extranet_monitoring_filter_post_request.py +53 -0
  74. test/test_v1_extranet_b2b_monitoring_peering_service_service_customer_list_post200_response.py +53 -0
  75. test/test_v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py +60 -0
  76. test/test_v1_extranets_b2b_general_customers_summary_get200_response.py +64 -0
  77. test/test_v1_extranets_b2b_general_customers_summary_get200_response_customers_inner.py +61 -0
  78. test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response.py +75 -0
  79. test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner.py +72 -0
  80. test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_customer.py +56 -0
  81. test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_service.py +56 -0
  82. test/test_v1_extranets_b2b_peering_consumer_id_post200_response.py +74 -0
  83. test/test_v1_extranets_b2b_peering_consumer_id_post_request.py +123 -0
  84. test/test_v1_extranets_b2b_peering_consumer_id_post_request_policy_inner.py +54 -0
  85. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn.py +92 -0
  86. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +87 -0
  87. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +69 -0
  88. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +64 -0
  89. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value.py +56 -0
  90. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_address_families_value_family.py +55 -0
  91. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password.py +51 -0
  92. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +53 -0
  93. test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +54 -0
  94. test/test_v1_extranets_b2b_peering_customer_id_get200_response.py +57 -0
  95. test/test_v1_extranets_b2b_peering_customer_id_put_request.py +51 -0
  96. test/test_v1_extranets_b2b_peering_customer_post200_response.py +56 -0
  97. test/test_v1_extranets_b2b_peering_customer_post_request.py +57 -0
  98. test/test_v1_extranets_b2b_peering_customer_post_request_invite.py +54 -0
  99. test/test_v1_extranets_b2b_peering_match_customers_post200_response.py +64 -0
  100. test/test_v1_extranets_b2b_peering_match_customers_post_request.py +65 -0
  101. test/test_v1_extranets_b2b_peering_match_customers_post_request_info_inner.py +61 -0
  102. test/test_v1_extranets_b2b_peering_match_service_to_customer_post200_response.py +66 -0
  103. test/test_v1_extranets_b2b_peering_match_service_to_customer_put200_response.py +64 -0
  104. test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request.py +65 -0
  105. test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service.py +63 -0
  106. test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service_nat_inner.py +52 -0
  107. test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner.py +52 -0
  108. test/test_v1_extranets_b2b_peering_match_services_summary_get200_response.py +62 -0
  109. test/test_v1_extranets_b2b_peering_match_services_summary_get200_response_services_inner.py +59 -0
  110. test/test_v1_extranets_b2b_peering_producer_id_get200_response.py +80 -0
  111. test/test_v1_extranets_b2b_peering_producer_id_put_request.py +76 -0
  112. test/test_v1_extranets_b2b_peering_producer_post200_response.py +79 -0
  113. test/test_v1_extranets_b2b_peering_producer_post200_response_policy.py +77 -0
  114. test/test_v1_extranets_b2b_peering_producer_post_request.py +78 -0
  115. test/test_v1_extranets_b2b_peering_producer_post_request_policy.py +75 -0
  116. test/test_v1_gateways_guest_consumer_get200_response.py +93 -0
  117. test/test_v1_invitation_email_post_request.py +55 -0
  118. test/test_v1_temp_password_put_request.py +55 -0
  119. {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.1.dist-info}/WHEEL +0 -0
  120. {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.1.dist-info}/licenses/LICENSE +0 -0
  121. {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,104 @@
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_extensions import Annotated
23
+ from graphiant_sdk.models.v1_alarm_history_get200_response_history_inner_time import V1AlarmHistoryGet200ResponseHistoryInnerTime
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class V1ExtranetsB2bPeeringMatchServicesSummaryGet200ResponseServicesInner(BaseModel):
28
+ """
29
+ V1ExtranetsB2bPeeringMatchServicesSummaryGet200ResponseServicesInner
30
+ """ # noqa: E501
31
+ id: Optional[StrictInt] = None
32
+ lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment")
33
+ matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers")
34
+ name: Optional[StrictStr] = None
35
+ status: Optional[StrictStr] = None
36
+ type: Optional[StrictStr] = None
37
+ updated_at: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="updatedAt")
38
+ __properties: ClassVar[List[str]] = ["id", "lanSegment", "matchedCustomers", "name", "status", "type", "updatedAt"]
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 V1ExtranetsB2bPeeringMatchServicesSummaryGet200ResponseServicesInner 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 updated_at
80
+ if self.updated_at:
81
+ _dict['updatedAt'] = self.updated_at.to_dict()
82
+ return _dict
83
+
84
+ @classmethod
85
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
86
+ """Create an instance of V1ExtranetsB2bPeeringMatchServicesSummaryGet200ResponseServicesInner from a dict"""
87
+ if obj is None:
88
+ return None
89
+
90
+ if not isinstance(obj, dict):
91
+ return cls.model_validate(obj)
92
+
93
+ _obj = cls.model_validate({
94
+ "id": obj.get("id"),
95
+ "lanSegment": obj.get("lanSegment"),
96
+ "matchedCustomers": obj.get("matchedCustomers"),
97
+ "name": obj.get("name"),
98
+ "status": obj.get("status"),
99
+ "type": obj.get("type"),
100
+ "updatedAt": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None
101
+ })
102
+ return _obj
103
+
104
+
@@ -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, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post200_response_policy import V1ExtranetsB2bPeeringProducerPost200ResponsePolicy
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerIdGet200Response(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerIdGet200Response
29
+ """ # noqa: E501
30
+ id: Optional[StrictInt] = None
31
+ policy: Optional[V1ExtranetsB2bPeeringProducerPost200ResponsePolicy] = None
32
+ status: Optional[StrictStr] = None
33
+ __properties: ClassVar[List[str]] = ["id", "policy", "status"]
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 V1ExtranetsB2bPeeringProducerIdGet200Response 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 policy
75
+ if self.policy:
76
+ _dict['policy'] = self.policy.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 V1ExtranetsB2bPeeringProducerIdGet200Response 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
+ "id": obj.get("id"),
90
+ "policy": V1ExtranetsB2bPeeringProducerPost200ResponsePolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None,
91
+ "status": obj.get("status")
92
+ })
93
+ return _obj
94
+
95
+
@@ -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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_request_policy import V1ExtranetsB2bPeeringProducerPostRequestPolicy
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerIdPutRequest(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerIdPutRequest
29
+ """ # noqa: E501
30
+ policy: Optional[V1ExtranetsB2bPeeringProducerPostRequestPolicy] = None
31
+ __properties: ClassVar[List[str]] = ["policy"]
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 V1ExtranetsB2bPeeringProducerIdPutRequest 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 policy
73
+ if self.policy:
74
+ _dict['policy'] = self.policy.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 V1ExtranetsB2bPeeringProducerIdPutRequest 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
+ "policy": V1ExtranetsB2bPeeringProducerPostRequestPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None
88
+ })
89
+ return _obj
90
+
91
+
@@ -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, StrictInt
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post200_response_policy import V1ExtranetsB2bPeeringProducerPost200ResponsePolicy
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerPost200Response(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerPost200Response
29
+ """ # noqa: E501
30
+ id: Optional[StrictInt] = None
31
+ policy: Optional[V1ExtranetsB2bPeeringProducerPost200ResponsePolicy] = None
32
+ __properties: ClassVar[List[str]] = ["id", "policy"]
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 V1ExtranetsB2bPeeringProducerPost200Response 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
+ # override the default output from pydantic by calling `to_dict()` of policy
74
+ if self.policy:
75
+ _dict['policy'] = self.policy.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of V1ExtranetsB2bPeeringProducerPost200Response from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "id": obj.get("id"),
89
+ "policy": V1ExtranetsB2bPeeringProducerPost200ResponsePolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None
90
+ })
91
+ return _obj
92
+
93
+
@@ -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, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_request_policy import V1ExtranetsB2bPeeringProducerPostRequestPolicy
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerPost200ResponsePolicy(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerPost200ResponsePolicy
29
+ """ # noqa: E501
30
+ policy: Optional[V1ExtranetsB2bPeeringProducerPostRequestPolicy] = None
31
+ service_name: Optional[StrictStr] = Field(default=None, alias="serviceName")
32
+ __properties: ClassVar[List[str]] = ["policy", "serviceName"]
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 V1ExtranetsB2bPeeringProducerPost200ResponsePolicy 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
+ # override the default output from pydantic by calling `to_dict()` of policy
74
+ if self.policy:
75
+ _dict['policy'] = self.policy.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of V1ExtranetsB2bPeeringProducerPost200ResponsePolicy from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "policy": V1ExtranetsB2bPeeringProducerPostRequestPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None,
89
+ "serviceName": obj.get("serviceName")
90
+ })
91
+ return _obj
92
+
93
+
@@ -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, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_request_policy import V1ExtranetsB2bPeeringProducerPostRequestPolicy
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerPostRequest(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerPostRequest
29
+ """ # noqa: E501
30
+ policy: Optional[V1ExtranetsB2bPeeringProducerPostRequestPolicy] = None
31
+ service_name: Optional[StrictStr] = Field(default=None, alias="serviceName")
32
+ type: Optional[StrictStr] = None
33
+ __properties: ClassVar[List[str]] = ["policy", "serviceName", "type"]
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 V1ExtranetsB2bPeeringProducerPostRequest 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 policy
75
+ if self.policy:
76
+ _dict['policy'] = self.policy.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 V1ExtranetsB2bPeeringProducerPostRequest 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
+ "policy": V1ExtranetsB2bPeeringProducerPostRequestPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None,
90
+ "serviceName": obj.get("serviceName"),
91
+ "type": obj.get("type")
92
+ })
93
+ return _obj
94
+
95
+
@@ -0,0 +1,111 @@
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_consumer_post_request_site_information_inner import V1ExtranetsB2bConsumerPostRequestSiteInformationInner
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class V1ExtranetsB2bPeeringProducerPostRequestPolicy(BaseModel):
28
+ """
29
+ V1ExtranetsB2bPeeringProducerPostRequestPolicy
30
+ """ # noqa: E501
31
+ description: Optional[StrictStr] = None
32
+ prefix_tags: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner]] = Field(default=None, alias="prefixTags")
33
+ service_lan_segment: Optional[StrictInt] = Field(default=None, alias="serviceLanSegment")
34
+ site: Optional[List[V1ExtranetsB2bConsumerPostRequestSiteInformationInner]] = None
35
+ type: Optional[StrictStr] = None
36
+ __properties: ClassVar[List[str]] = ["description", "prefixTags", "serviceLanSegment", "site", "type"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of V1ExtranetsB2bPeeringProducerPostRequestPolicy from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ # override the default output from pydantic by calling `to_dict()` of each item in prefix_tags (list)
78
+ _items = []
79
+ if self.prefix_tags:
80
+ for _item_prefix_tags in self.prefix_tags:
81
+ if _item_prefix_tags:
82
+ _items.append(_item_prefix_tags.to_dict())
83
+ _dict['prefixTags'] = _items
84
+ # override the default output from pydantic by calling `to_dict()` of each item in site (list)
85
+ _items = []
86
+ if self.site:
87
+ for _item_site in self.site:
88
+ if _item_site:
89
+ _items.append(_item_site.to_dict())
90
+ _dict['site'] = _items
91
+ return _dict
92
+
93
+ @classmethod
94
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95
+ """Create an instance of V1ExtranetsB2bPeeringProducerPostRequestPolicy from a dict"""
96
+ if obj is None:
97
+ return None
98
+
99
+ if not isinstance(obj, dict):
100
+ return cls.model_validate(obj)
101
+
102
+ _obj = cls.model_validate({
103
+ "description": obj.get("description"),
104
+ "prefixTags": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None,
105
+ "serviceLanSegment": obj.get("serviceLanSegment"),
106
+ "site": [V1ExtranetsB2bConsumerPostRequestSiteInformationInner.from_dict(_item) for _item in obj["site"]] if obj.get("site") is not None else None,
107
+ "type": obj.get("type")
108
+ })
109
+ return _obj
110
+
111
+