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,112 @@
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_extensions import Annotated
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request_service_nat_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner
24
+ from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestService(BaseModel):
29
+ """
30
+ V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestService
31
+ """ # noqa: E501
32
+ id: Optional[StrictInt] = None
33
+ lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment")
34
+ nat: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner]] = None
35
+ num_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numCustomers")
36
+ service_prefixes: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner]] = Field(default=None, alias="servicePrefixes")
37
+ __properties: ClassVar[List[str]] = ["id", "lanSegment", "nat", "numCustomers", "servicePrefixes"]
38
+
39
+ model_config = ConfigDict(
40
+ populate_by_name=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Optional[Self]:
57
+ """Create an instance of V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestService from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
62
+
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
65
+
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ ])
72
+
73
+ _dict = self.model_dump(
74
+ by_alias=True,
75
+ exclude=excluded_fields,
76
+ exclude_none=True,
77
+ )
78
+ # override the default output from pydantic by calling `to_dict()` of each item in nat (list)
79
+ _items = []
80
+ if self.nat:
81
+ for _item_nat in self.nat:
82
+ if _item_nat:
83
+ _items.append(_item_nat.to_dict())
84
+ _dict['nat'] = _items
85
+ # override the default output from pydantic by calling `to_dict()` of each item in service_prefixes (list)
86
+ _items = []
87
+ if self.service_prefixes:
88
+ for _item_service_prefixes in self.service_prefixes:
89
+ if _item_service_prefixes:
90
+ _items.append(_item_service_prefixes.to_dict())
91
+ _dict['servicePrefixes'] = _items
92
+ return _dict
93
+
94
+ @classmethod
95
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
96
+ """Create an instance of V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestService 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
+ "id": obj.get("id"),
105
+ "lanSegment": obj.get("lanSegment"),
106
+ "nat": [V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner.from_dict(_item) for _item in obj["nat"]] if obj.get("nat") is not None else None,
107
+ "numCustomers": obj.get("numCustomers"),
108
+ "servicePrefixes": [V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["servicePrefixes"]] if obj.get("servicePrefixes") is not None else None
109
+ })
110
+ return _obj
111
+
112
+
@@ -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, 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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner(BaseModel):
26
+ """
27
+ V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner
28
+ """ # noqa: E501
29
+ outside_nat_prefix: Optional[StrictStr] = Field(default=None, alias="outsideNatPrefix")
30
+ prefix: Optional[StrictStr] = None
31
+ __properties: ClassVar[List[str]] = ["outsideNatPrefix", "prefix"]
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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner 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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceNatInner 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
+ "outsideNatPrefix": obj.get("outsideNatPrefix"),
85
+ "prefix": obj.get("prefix")
86
+ })
87
+ return _obj
88
+
89
+
@@ -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, 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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner(BaseModel):
26
+ """
27
+ V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner
28
+ """ # noqa: E501
29
+ prefix: Optional[StrictStr] = None
30
+ tag: Optional[StrictStr] = None
31
+ __properties: ClassVar[List[str]] = ["prefix", "tag"]
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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner 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 V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner 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
+ "prefix": obj.get("prefix"),
85
+ "tag": obj.get("tag")
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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from graphiant_sdk.models.v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response_info_inner import V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200Response(BaseModel):
27
+ """
28
+ V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200Response
29
+ """ # noqa: E501
30
+ info: Optional[List[V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner]] = None
31
+ __properties: ClassVar[List[str]] = ["info"]
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 V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200Response 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 info (list)
73
+ _items = []
74
+ if self.info:
75
+ for _item_info in self.info:
76
+ if _item_info:
77
+ _items.append(_item_info.to_dict())
78
+ _dict['info'] = _items
79
+ return _dict
80
+
81
+ @classmethod
82
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
+ """Create an instance of V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200Response 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
+ "info": [V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner.from_dict(_item) for _item in obj["info"]] if obj.get("info") is not None else None
92
+ })
93
+ return _obj
94
+
95
+
@@ -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, 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 V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner(BaseModel):
28
+ """
29
+ V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner
30
+ """ # noqa: E501
31
+ customer_id: Optional[StrictStr] = Field(default=None, alias="customerId")
32
+ customer_name: Optional[StrictStr] = Field(default=None, alias="customerName")
33
+ emails: Optional[List[StrictStr]] = None
34
+ matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices")
35
+ peer_type: Optional[StrictStr] = Field(default=None, alias="peerType")
36
+ status: Optional[StrictStr] = None
37
+ updated_at: Optional[V1AlarmHistoryGet200ResponseHistoryInnerTime] = Field(default=None, alias="updatedAt")
38
+ __properties: ClassVar[List[str]] = ["customerId", "customerName", "emails", "matchedServices", "peerType", "status", "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 V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner 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 V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGet200ResponseInfoInner 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
+ "customerId": obj.get("customerId"),
95
+ "customerName": obj.get("customerName"),
96
+ "emails": obj.get("emails"),
97
+ "matchedServices": obj.get("matchedServices"),
98
+ "peerType": obj.get("peerType"),
99
+ "status": obj.get("status"),
100
+ "updatedAt": V1AlarmHistoryGet200ResponseHistoryInnerTime.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None
101
+ })
102
+ return _obj
103
+
104
+
@@ -20,7 +20,8 @@ import json
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
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
23
+ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request_global_object_ops_value import V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue
24
+ from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner
24
25
  from typing import Optional, Set
25
26
  from typing_extensions import Self
26
27
 
@@ -29,11 +30,12 @@ class V1ExtranetsB2bPeeringProducerPostRequestPolicy(BaseModel):
29
30
  V1ExtranetsB2bPeeringProducerPostRequestPolicy
30
31
  """ # noqa: E501
31
32
  description: Optional[StrictStr] = None
32
- prefix_tags: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner]] = Field(default=None, alias="prefixTags")
33
+ global_object_ops: Optional[Dict[str, V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue]] = Field(default=None, alias="globalObjectOps")
34
+ prefix_tags: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner]] = Field(default=None, alias="prefixTags")
33
35
  service_lan_segment: Optional[StrictInt] = Field(default=None, alias="serviceLanSegment")
34
36
  site: Optional[List[V1ExtranetsB2bConsumerPostRequestSiteInformationInner]] = None
35
37
  type: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["description", "prefixTags", "serviceLanSegment", "site", "type"]
38
+ __properties: ClassVar[List[str]] = ["description", "globalObjectOps", "prefixTags", "serviceLanSegment", "site", "type"]
37
39
 
38
40
  model_config = ConfigDict(
39
41
  populate_by_name=True,
@@ -74,6 +76,13 @@ class V1ExtranetsB2bPeeringProducerPostRequestPolicy(BaseModel):
74
76
  exclude=excluded_fields,
75
77
  exclude_none=True,
76
78
  )
79
+ # override the default output from pydantic by calling `to_dict()` of each value in global_object_ops (dict)
80
+ _field_dict = {}
81
+ if self.global_object_ops:
82
+ for _key_global_object_ops in self.global_object_ops:
83
+ if self.global_object_ops[_key_global_object_ops]:
84
+ _field_dict[_key_global_object_ops] = self.global_object_ops[_key_global_object_ops].to_dict()
85
+ _dict['globalObjectOps'] = _field_dict
77
86
  # override the default output from pydantic by calling `to_dict()` of each item in prefix_tags (list)
78
87
  _items = []
79
88
  if self.prefix_tags:
@@ -101,7 +110,13 @@ class V1ExtranetsB2bPeeringProducerPostRequestPolicy(BaseModel):
101
110
 
102
111
  _obj = cls.model_validate({
103
112
  "description": obj.get("description"),
104
- "prefixTags": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None,
113
+ "globalObjectOps": dict(
114
+ (_k, V1ExtranetsB2bPeeringConsumerMatchIdPostRequestGlobalObjectOpsValue.from_dict(_v))
115
+ for _k, _v in obj["globalObjectOps"].items()
116
+ )
117
+ if obj.get("globalObjectOps") is not None
118
+ else None,
119
+ "prefixTags": [V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None,
105
120
  "serviceLanSegment": obj.get("serviceLanSegment"),
106
121
  "site": [V1ExtranetsB2bConsumerPostRequestSiteInformationInner.from_dict(_item) for _item in obj["site"]] if obj.get("site") is not None else None,
107
122
  "type": obj.get("type")
@@ -21,7 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from graphiant_sdk.models.v1_extranets_b2b_consumer_post_request_site_information_inner import V1ExtranetsB2bConsumerPostRequestSiteInformationInner
24
- from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner
24
+ from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner
25
+ from graphiant_sdk.models.v1_extranets_b2b_post_request_policy_global_object_device_summaries_value import V1ExtranetsB2bPostRequestPolicyGlobalObjectDeviceSummariesValue
25
26
  from graphiant_sdk.models.v1_extranets_b2b_post_request_policy_profiles_inner import V1ExtranetsB2bPostRequestPolicyProfilesInner
26
27
  from graphiant_sdk.models.v1_extranets_b2b_post_request_policy_sla import V1ExtranetsB2bPostRequestPolicySla
27
28
  from typing import Optional, Set
@@ -32,8 +33,10 @@ class V1ExtranetsB2bPostRequestPolicy(BaseModel):
32
33
  V1ExtranetsB2bPostRequestPolicy
33
34
  """ # noqa: E501
34
35
  description: Optional[StrictStr] = None
36
+ global_object_device_summaries: Optional[Dict[str, V1ExtranetsB2bPostRequestPolicyGlobalObjectDeviceSummariesValue]] = Field(default=None, alias="globalObjectDeviceSummaries")
37
+ global_object_summaries: Optional[Dict[str, V1ExtranetsB2bPostRequestPolicyGlobalObjectDeviceSummariesValue]] = Field(default=None, alias="globalObjectSummaries")
35
38
  nat_pools: Optional[List[StrictStr]] = Field(default=None, alias="natPools")
36
- prefix_tags: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner]] = Field(default=None, alias="prefixTags")
39
+ prefix_tags: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner]] = Field(default=None, alias="prefixTags")
37
40
  profiles: Optional[List[V1ExtranetsB2bPostRequestPolicyProfilesInner]] = None
38
41
  service_lan_segment: Optional[StrictInt] = Field(default=None, alias="serviceLanSegment")
39
42
  service_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="servicePrefixes")
@@ -42,7 +45,7 @@ class V1ExtranetsB2bPostRequestPolicy(BaseModel):
42
45
  status: Optional[StrictStr] = None
43
46
  type: Optional[StrictStr] = None
44
47
  unmatched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="unmatchedCustomers")
45
- __properties: ClassVar[List[str]] = ["description", "natPools", "prefixTags", "profiles", "serviceLanSegment", "servicePrefixes", "sites", "sla", "status", "type", "unmatchedCustomers"]
48
+ __properties: ClassVar[List[str]] = ["description", "globalObjectDeviceSummaries", "globalObjectSummaries", "natPools", "prefixTags", "profiles", "serviceLanSegment", "servicePrefixes", "sites", "sla", "status", "type", "unmatchedCustomers"]
46
49
 
47
50
  model_config = ConfigDict(
48
51
  populate_by_name=True,
@@ -83,6 +86,20 @@ class V1ExtranetsB2bPostRequestPolicy(BaseModel):
83
86
  exclude=excluded_fields,
84
87
  exclude_none=True,
85
88
  )
89
+ # override the default output from pydantic by calling `to_dict()` of each value in global_object_device_summaries (dict)
90
+ _field_dict = {}
91
+ if self.global_object_device_summaries:
92
+ for _key_global_object_device_summaries in self.global_object_device_summaries:
93
+ if self.global_object_device_summaries[_key_global_object_device_summaries]:
94
+ _field_dict[_key_global_object_device_summaries] = self.global_object_device_summaries[_key_global_object_device_summaries].to_dict()
95
+ _dict['globalObjectDeviceSummaries'] = _field_dict
96
+ # override the default output from pydantic by calling `to_dict()` of each value in global_object_summaries (dict)
97
+ _field_dict = {}
98
+ if self.global_object_summaries:
99
+ for _key_global_object_summaries in self.global_object_summaries:
100
+ if self.global_object_summaries[_key_global_object_summaries]:
101
+ _field_dict[_key_global_object_summaries] = self.global_object_summaries[_key_global_object_summaries].to_dict()
102
+ _dict['globalObjectSummaries'] = _field_dict
86
103
  # override the default output from pydantic by calling `to_dict()` of each item in prefix_tags (list)
87
104
  _items = []
88
105
  if self.prefix_tags:
@@ -120,8 +137,20 @@ class V1ExtranetsB2bPostRequestPolicy(BaseModel):
120
137
 
121
138
  _obj = cls.model_validate({
122
139
  "description": obj.get("description"),
140
+ "globalObjectDeviceSummaries": dict(
141
+ (_k, V1ExtranetsB2bPostRequestPolicyGlobalObjectDeviceSummariesValue.from_dict(_v))
142
+ for _k, _v in obj["globalObjectDeviceSummaries"].items()
143
+ )
144
+ if obj.get("globalObjectDeviceSummaries") is not None
145
+ else None,
146
+ "globalObjectSummaries": dict(
147
+ (_k, V1ExtranetsB2bPostRequestPolicyGlobalObjectDeviceSummariesValue.from_dict(_v))
148
+ for _k, _v in obj["globalObjectSummaries"].items()
149
+ )
150
+ if obj.get("globalObjectSummaries") is not None
151
+ else None,
123
152
  "natPools": obj.get("natPools"),
124
- "prefixTags": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None,
153
+ "prefixTags": [V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None,
125
154
  "profiles": [V1ExtranetsB2bPostRequestPolicyProfilesInner.from_dict(_item) for _item in obj["profiles"]] if obj.get("profiles") is not None else None,
126
155
  "serviceLanSegment": obj.get("serviceLanSegment"),
127
156
  "servicePrefixes": obj.get("servicePrefixes"),