graphiant-sdk 25.9.2__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.
- graphiant_sdk/__init__.py +110 -1212
- graphiant_sdk/api/__init__.py +1 -16
- graphiant_sdk/api/default_api.py +17843 -12280
- graphiant_sdk/api_client.py +5 -5
- graphiant_sdk/configuration.py +1 -1
- graphiant_sdk/models/__init__.py +55 -1186
- graphiant_sdk/models/v1_auth_login_temp_post200_response.py +91 -0
- graphiant_sdk/models/v1_auth_login_temp_post_request.py +91 -0
- graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response.py +91 -0
- graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response_filters.py +104 -0
- graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post200_response_filters_customers_inner.py +93 -0
- graphiant_sdk/models/v1_b2b_extranet_monitoring_filter_post_request.py +91 -0
- graphiant_sdk/models/v1_devices_device_id_config_put_request_core_core_vrf_bgp_neighbors_value_neighbor.py +6 -6
- graphiant_sdk/models/v1_devices_device_id_config_put_request_core_core_vrf_bgp_redistribution_value.py +3 -3
- graphiant_sdk/models/v1_devices_device_id_config_put_request_edge_site_to_site_vpn_value_site_to_site_vpn.py +3 -3
- graphiant_sdk/models/v1_enterprises_get200_response_enterprises_inner.py +3 -1
- graphiant_sdk/models/v1_enterprises_patch_request.py +3 -1
- graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post200_response.py +87 -0
- graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get200_response_customers_inner.py +104 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response.py +166 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_ipsec_tunnel_config_inner.py +150 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details.py +109 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_customer.py +94 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service_prefixes_inner.py +91 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner.py +109 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_customer.py +94 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_service.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post200_response.py +109 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request.py +123 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_policy_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +117 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +97 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +115 -0
- 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
- 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
- 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
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +87 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post200_response.py +109 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py +140 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_global_object_ops_value.py +87 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_policy_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +117 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +97 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +115 -0
- 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
- 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
- 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
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +87 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get200_response.py +96 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_put_request.py +87 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_customer_post200_response.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request_invite.py +90 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post_request.py +97 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_customers_post_request_info_inner.py +104 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post200_response.py +97 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service.py +112 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service_nat_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put200_response.py +91 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service.py +112 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service_nat_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner.py +89 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_get200_response_services_inner.py +104 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response_info_inner.py +104 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_put_request.py +91 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_post200_response.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_post200_response_policy.py +93 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request_policy.py +126 -0
- graphiant_sdk/models/v1_extranets_b2b_post_request_policy.py +48 -2
- graphiant_sdk/models/v1_extranets_b2b_post_request_policy_global_object_device_summaries_value.py +95 -0
- graphiant_sdk/models/v1_extranets_b2b_post_request_policy_global_object_device_summaries_value_routing_policies_inner.py +114 -0
- graphiant_sdk/models/v1_extranets_b2b_producers_summary_get200_response_info_inner.py +16 -3
- graphiant_sdk/models/v1_extranets_get200_response_policies_inner_branches_excluded_devices_inner_ipsec_tunnels_inner.py +3 -3
- graphiant_sdk/models/v1_extranets_get200_response_policies_inner_branches_excluded_devices_inner_region.py +5 -3
- graphiant_sdk/models/v1_gateways_guest_consumer_get200_response.py +91 -0
- graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get200_response.py +103 -0
- graphiant_sdk/models/v1_gateways_put_request_details.py +3 -3
- graphiant_sdk/models/v1_global_config_patch_request_snmps_value_config_notify_filter_profiles_value_notify_filter_profile.py +3 -3
- graphiant_sdk/models/v1_groups_get200_response_groups_inner_permissions.py +3 -1
- graphiant_sdk/models/v1_invitation_email_post_request.py +97 -0
- graphiant_sdk/models/v1_temp_password_put_request.py +93 -0
- graphiant_sdk/models/v2_assistant_conversation_interface_state_get200_response.py +87 -0
- {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.2.dist-info}/METADATA +3 -4
- {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.2.dist-info}/RECORD +185 -23
- test/test_v1_auth_login_temp_post200_response.py +53 -0
- test/test_v1_auth_login_temp_post_request.py +52 -0
- test/test_v1_b2b_extranet_monitoring_filter_post200_response.py +65 -0
- test/test_v1_b2b_extranet_monitoring_filter_post200_response_filters.py +64 -0
- test/test_v1_b2b_extranet_monitoring_filter_post200_response_filters_customers_inner.py +54 -0
- test/test_v1_b2b_extranet_monitoring_filter_post_request.py +53 -0
- test/test_v1_extranet_b2b_monitoring_peering_service_service_customer_list_post200_response.py +53 -0
- test/test_v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py +60 -0
- test/test_v1_extranets_b2b_general_customers_summary_get200_response.py +64 -0
- test/test_v1_extranets_b2b_general_customers_summary_get200_response_customers_inner.py +61 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response.py +224 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_ipsec_tunnel_config_inner.py +82 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details.py +74 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_customer.py +56 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service.py +57 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get200_response_match_details_service_prefixes_inner.py +53 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response.py +75 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner.py +72 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_customer.py +56 -0
- test/test_v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_service.py +56 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post200_response.py +74 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request.py +123 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_policy_inner.py +54 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn.py +92 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +87 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +69 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +64 -0
- 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
- 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
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp_md5_password.py +51 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +53 -0
- test/test_v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +54 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_match_details_get200_response.py +77 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post200_response.py +74 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request.py +130 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_global_object_ops_value.py +53 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_policy_inner.py +54 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn.py +92 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details.py +87 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing.py +69 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_bgp.py +64 -0
- 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
- 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
- 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
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_routing_static.py +53 -0
- test/test_v1_extranets_b2b_peering_consumer_match_id_post_request_site_to_site_vpn_ipsec_gateway_details_tunnel1.py +54 -0
- test/test_v1_extranets_b2b_peering_customer_id_get200_response.py +57 -0
- test/test_v1_extranets_b2b_peering_customer_id_put_request.py +51 -0
- test/test_v1_extranets_b2b_peering_customer_post200_response.py +56 -0
- test/test_v1_extranets_b2b_peering_customer_post_request.py +57 -0
- test/test_v1_extranets_b2b_peering_customer_post_request_invite.py +54 -0
- test/test_v1_extranets_b2b_peering_match_customers_post200_response.py +64 -0
- test/test_v1_extranets_b2b_peering_match_customers_post_request.py +65 -0
- test/test_v1_extranets_b2b_peering_match_customers_post_request_info_inner.py +61 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_post200_response.py +66 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request.py +65 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service.py +63 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service_nat_inner.py +52 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_post_request_service_service_prefixes_inner.py +52 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_put200_response.py +64 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request.py +65 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service.py +63 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service_nat_inner.py +52 -0
- test/test_v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner.py +52 -0
- test/test_v1_extranets_b2b_peering_match_services_summary_get200_response.py +62 -0
- test/test_v1_extranets_b2b_peering_match_services_summary_get200_response_services_inner.py +59 -0
- test/test_v1_extranets_b2b_peering_producer_id_get200_response.py +80 -0
- test/test_v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response.py +64 -0
- test/test_v1_extranets_b2b_peering_producer_id_matching_customers_summary_get200_response_info_inner.py +61 -0
- test/test_v1_extranets_b2b_peering_producer_id_put_request.py +76 -0
- test/test_v1_extranets_b2b_peering_producer_post200_response.py +79 -0
- test/test_v1_extranets_b2b_peering_producer_post200_response_policy.py +77 -0
- test/test_v1_extranets_b2b_peering_producer_post_request.py +78 -0
- test/test_v1_extranets_b2b_peering_producer_post_request_policy.py +75 -0
- test/test_v1_extranets_b2b_post_request_policy_global_object_device_summaries_value.py +67 -0
- test/test_v1_extranets_b2b_post_request_policy_global_object_device_summaries_value_routing_policies_inner.py +64 -0
- test/test_v1_gateways_guest_consumer_get200_response.py +93 -0
- test/test_v1_gateways_guest_consumer_match_id_get200_response.py +131 -0
- test/test_v1_invitation_email_post_request.py +55 -0
- test/test_v1_temp_password_put_request.py +55 -0
- test/test_v2_assistant_conversation_interface_state_get200_response.py +51 -0
- {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.2.dist-info}/WHEEL +0 -0
- {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.2.dist-info}/licenses/LICENSE +0 -0
- {graphiant_sdk-25.9.2.dist-info → graphiant_sdk-25.10.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
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_consumer_customer_id_match_details_get200_response_details_inner_customer import V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer
|
|
23
|
+
from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_customer_id_match_details_get200_response_details_inner_service import V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService
|
|
24
|
+
from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_put_request_service_service_prefixes_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
class V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInner(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInner
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes")
|
|
33
|
+
customer: Optional[V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer] = None
|
|
34
|
+
service: Optional[V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService] = None
|
|
35
|
+
service_prefixes: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner]] = Field(default=None, alias="servicePrefixes")
|
|
36
|
+
__properties: ClassVar[List[str]] = ["consumerPrefixes", "customer", "service", "servicePrefixes"]
|
|
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 V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInner 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 customer
|
|
78
|
+
if self.customer:
|
|
79
|
+
_dict['customer'] = self.customer.to_dict()
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of service
|
|
81
|
+
if self.service:
|
|
82
|
+
_dict['service'] = self.service.to_dict()
|
|
83
|
+
# override the default output from pydantic by calling `to_dict()` of each item in service_prefixes (list)
|
|
84
|
+
_items = []
|
|
85
|
+
if self.service_prefixes:
|
|
86
|
+
for _item_service_prefixes in self.service_prefixes:
|
|
87
|
+
if _item_service_prefixes:
|
|
88
|
+
_items.append(_item_service_prefixes.to_dict())
|
|
89
|
+
_dict['servicePrefixes'] = _items
|
|
90
|
+
return _dict
|
|
91
|
+
|
|
92
|
+
@classmethod
|
|
93
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
94
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInner from a dict"""
|
|
95
|
+
if obj is None:
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
if not isinstance(obj, dict):
|
|
99
|
+
return cls.model_validate(obj)
|
|
100
|
+
|
|
101
|
+
_obj = cls.model_validate({
|
|
102
|
+
"consumerPrefixes": obj.get("consumerPrefixes"),
|
|
103
|
+
"customer": V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer.from_dict(obj["customer"]) if obj.get("customer") is not None else None,
|
|
104
|
+
"service": V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService.from_dict(obj["service"]) if obj.get("service") is not None else None,
|
|
105
|
+
"servicePrefixes": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceServicePrefixesInner.from_dict(_item) for _item in obj["servicePrefixes"]] if obj.get("servicePrefixes") is not None else None
|
|
106
|
+
})
|
|
107
|
+
return _obj
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
company_name: Optional[StrictStr] = Field(default=None, alias="companyName")
|
|
31
|
+
emails: Optional[List[StrictStr]] = None
|
|
32
|
+
id: Optional[StrictInt] = None
|
|
33
|
+
num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["companyName", "emails", "id", "numSites"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerCustomer 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
|
+
"companyName": obj.get("companyName"),
|
|
88
|
+
"emails": obj.get("emails"),
|
|
89
|
+
"id": obj.get("id"),
|
|
90
|
+
"numSites": obj.get("numSites")
|
|
91
|
+
})
|
|
92
|
+
return _obj
|
|
93
|
+
|
|
94
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Graphiant APIs
|
|
5
|
+
|
|
6
|
+
Graphiant API documentation.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
company_name: Optional[StrictStr] = Field(default=None, alias="companyName")
|
|
30
|
+
contact_email: Optional[List[StrictStr]] = Field(default=None, alias="contactEmail")
|
|
31
|
+
description: Optional[StrictStr] = None
|
|
32
|
+
id: Optional[StrictInt] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["companyName", "contactEmail", "description", "id"]
|
|
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 V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerCustomerIdMatchDetailsGet200ResponseDetailsInnerService from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"companyName": obj.get("companyName"),
|
|
87
|
+
"contactEmail": obj.get("contactEmail"),
|
|
88
|
+
"description": obj.get("description"),
|
|
89
|
+
"id": obj.get("id")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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 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_nat_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class V1ExtranetsB2bPeeringConsumerIdPost200Response(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
V1ExtranetsB2bPeeringConsumerIdPost200Response
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
id: Optional[StrictInt] = None
|
|
32
|
+
lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment")
|
|
33
|
+
nat: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner]] = None
|
|
34
|
+
site_information: Optional[List[V1ExtranetsB2bConsumerPostRequestSiteInformationInner]] = Field(default=None, alias="siteInformation")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["id", "lanSegment", "nat", "siteInformation"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPost200Response from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in nat (list)
|
|
77
|
+
_items = []
|
|
78
|
+
if self.nat:
|
|
79
|
+
for _item_nat in self.nat:
|
|
80
|
+
if _item_nat:
|
|
81
|
+
_items.append(_item_nat.to_dict())
|
|
82
|
+
_dict['nat'] = _items
|
|
83
|
+
# override the default output from pydantic by calling `to_dict()` of each item in site_information (list)
|
|
84
|
+
_items = []
|
|
85
|
+
if self.site_information:
|
|
86
|
+
for _item_site_information in self.site_information:
|
|
87
|
+
if _item_site_information:
|
|
88
|
+
_items.append(_item_site_information.to_dict())
|
|
89
|
+
_dict['siteInformation'] = _items
|
|
90
|
+
return _dict
|
|
91
|
+
|
|
92
|
+
@classmethod
|
|
93
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
94
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPost200Response from a dict"""
|
|
95
|
+
if obj is None:
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
if not isinstance(obj, dict):
|
|
99
|
+
return cls.model_validate(obj)
|
|
100
|
+
|
|
101
|
+
_obj = cls.model_validate({
|
|
102
|
+
"id": obj.get("id"),
|
|
103
|
+
"lanSegment": obj.get("lanSegment"),
|
|
104
|
+
"nat": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner.from_dict(_item) for _item in obj["nat"]] if obj.get("nat") is not None else None,
|
|
105
|
+
"siteInformation": [V1ExtranetsB2bConsumerPostRequestSiteInformationInner.from_dict(_item) for _item in obj["siteInformation"]] if obj.get("siteInformation") is not None else None
|
|
106
|
+
})
|
|
107
|
+
return _obj
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
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 graphiant_sdk.models.v1_extranets_b2b_consumer_post_request_site_information_inner import V1ExtranetsB2bConsumerPostRequestSiteInformationInner
|
|
23
|
+
from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_post_request_policy_inner import V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner
|
|
24
|
+
from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_post_request_site_to_site_vpn import V1ExtranetsB2bPeeringConsumerIdPostRequestSiteToSiteVpn
|
|
25
|
+
from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_put_request_service_nat_inner import V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner
|
|
26
|
+
from typing import Optional, Set
|
|
27
|
+
from typing_extensions import Self
|
|
28
|
+
|
|
29
|
+
class V1ExtranetsB2bPeeringConsumerIdPostRequest(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
V1ExtranetsB2bPeeringConsumerIdPostRequest
|
|
32
|
+
""" # noqa: E501
|
|
33
|
+
customer_id: Optional[StrictInt] = Field(default=None, alias="customerId")
|
|
34
|
+
nat: Optional[List[V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner]] = None
|
|
35
|
+
policy: Optional[List[V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner]] = None
|
|
36
|
+
site_information: Optional[List[V1ExtranetsB2bConsumerPostRequestSiteInformationInner]] = Field(default=None, alias="siteInformation")
|
|
37
|
+
site_to_site_vpn: Optional[V1ExtranetsB2bPeeringConsumerIdPostRequestSiteToSiteVpn] = Field(default=None, alias="siteToSiteVpn")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["customerId", "nat", "policy", "siteInformation", "siteToSiteVpn"]
|
|
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 V1ExtranetsB2bPeeringConsumerIdPostRequest 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 item in nat (list)
|
|
80
|
+
_items = []
|
|
81
|
+
if self.nat:
|
|
82
|
+
for _item_nat in self.nat:
|
|
83
|
+
if _item_nat:
|
|
84
|
+
_items.append(_item_nat.to_dict())
|
|
85
|
+
_dict['nat'] = _items
|
|
86
|
+
# override the default output from pydantic by calling `to_dict()` of each item in policy (list)
|
|
87
|
+
_items = []
|
|
88
|
+
if self.policy:
|
|
89
|
+
for _item_policy in self.policy:
|
|
90
|
+
if _item_policy:
|
|
91
|
+
_items.append(_item_policy.to_dict())
|
|
92
|
+
_dict['policy'] = _items
|
|
93
|
+
# override the default output from pydantic by calling `to_dict()` of each item in site_information (list)
|
|
94
|
+
_items = []
|
|
95
|
+
if self.site_information:
|
|
96
|
+
for _item_site_information in self.site_information:
|
|
97
|
+
if _item_site_information:
|
|
98
|
+
_items.append(_item_site_information.to_dict())
|
|
99
|
+
_dict['siteInformation'] = _items
|
|
100
|
+
# override the default output from pydantic by calling `to_dict()` of site_to_site_vpn
|
|
101
|
+
if self.site_to_site_vpn:
|
|
102
|
+
_dict['siteToSiteVpn'] = self.site_to_site_vpn.to_dict()
|
|
103
|
+
return _dict
|
|
104
|
+
|
|
105
|
+
@classmethod
|
|
106
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
107
|
+
"""Create an instance of V1ExtranetsB2bPeeringConsumerIdPostRequest from a dict"""
|
|
108
|
+
if obj is None:
|
|
109
|
+
return None
|
|
110
|
+
|
|
111
|
+
if not isinstance(obj, dict):
|
|
112
|
+
return cls.model_validate(obj)
|
|
113
|
+
|
|
114
|
+
_obj = cls.model_validate({
|
|
115
|
+
"customerId": obj.get("customerId"),
|
|
116
|
+
"nat": [V1ExtranetsB2bPeeringMatchServiceToCustomerPutRequestServiceNatInner.from_dict(_item) for _item in obj["nat"]] if obj.get("nat") is not None else None,
|
|
117
|
+
"policy": [V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner.from_dict(_item) for _item in obj["policy"]] if obj.get("policy") is not None else None,
|
|
118
|
+
"siteInformation": [V1ExtranetsB2bConsumerPostRequestSiteInformationInner.from_dict(_item) for _item in obj["siteInformation"]] if obj.get("siteInformation") is not None else None,
|
|
119
|
+
"siteToSiteVpn": V1ExtranetsB2bPeeringConsumerIdPostRequestSiteToSiteVpn.from_dict(obj["siteToSiteVpn"]) if obj.get("siteToSiteVpn") is not None else None
|
|
120
|
+
})
|
|
121
|
+
return _obj
|
|
122
|
+
|
|
123
|
+
|
|
@@ -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 V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner
|
|
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 V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner 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 V1ExtranetsB2bPeeringConsumerIdPostRequestPolicyInner 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
|
+
|