volcengine-python-sdk 4.0.17__py2.py3-none-any.whl → 4.0.18__py2.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.
Potentially problematic release.
This version of volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/RECORD +261 -137
- volcenginesdkapig/__init__.py +52 -10
- volcenginesdkapig/api/apig_api.py +1489 -228
- volcenginesdkapig/models/__init__.py +52 -10
- volcenginesdkapig/models/apm_trace_spec_for_create_gateway_input.py +123 -0
- volcenginesdkapig/models/apm_trace_spec_for_get_gateway_output.py +95 -0
- volcenginesdkapig/models/apm_trace_spec_for_list_gateways_output.py +95 -0
- volcenginesdkapig/models/apm_trace_spec_for_update_gateway_trace_input.py +123 -0
- volcenginesdkapig/models/attach_gateway_lb_request.py +150 -0
- volcenginesdkapig/models/{tag_for_get_upstream_output.py → attach_gateway_lb_response.py} +20 -46
- volcenginesdkapig/models/create_custom_domain_request.py +255 -0
- volcenginesdkapig/models/create_custom_domain_response.py +123 -0
- volcenginesdkapig/models/create_gateway_request.py +17 -43
- volcenginesdkapig/models/create_upstream_request.py +1 -53
- volcenginesdkapig/models/create_upstream_version_request.py +150 -0
- volcenginesdkapig/models/create_upstream_version_response.py +149 -0
- volcenginesdkapig/models/custom_domain_for_get_custom_domain_output.py +357 -0
- volcenginesdkapig/models/delete_custom_domain_request.py +124 -0
- volcenginesdkapig/models/delete_custom_domain_response.py +95 -0
- volcenginesdkapig/models/delete_gateway_request.py +1 -27
- volcenginesdkapig/models/delete_upstream_version_request.py +151 -0
- volcenginesdkapig/models/delete_upstream_version_response.py +95 -0
- volcenginesdkapig20221112/models/tag_for_get_route_output.py → volcenginesdkapig/models/detach_gateway_lb_request.py +22 -47
- volcenginesdkapig/models/detach_gateway_lb_response.py +95 -0
- volcenginesdkapig/models/domain_spec_for_get_gateway_service_output.py +123 -0
- volcenginesdkapig/models/domain_spec_for_list_gateway_services_output.py +123 -0
- volcenginesdkapig/models/domain_spec_for_update_gateway_service_input.py +123 -0
- volcenginesdkapig/models/filter_for_list_gateways_input.py +1 -27
- volcenginesdkapig/models/gateway_for_get_gateway_output.py +17 -43
- volcenginesdkapig/models/gateway_service_for_get_gateway_service_output.py +29 -29
- volcenginesdkapig20221112/models/tag_for_list_routes_output.py → volcenginesdkapig/models/get_custom_domain_request.py +22 -47
- volcenginesdkapig/models/get_custom_domain_response.py +123 -0
- volcenginesdkapig/models/get_jwt_token_request.py +123 -0
- volcenginesdkapig/models/{tag_for_list_gateways_input.py → get_jwt_token_response.py} +20 -46
- volcenginesdkapig/models/imported_clb_spec_for_attach_gateway_lb_input.py +149 -0
- volcenginesdkapig/models/imported_clb_spec_for_list_gateway_lbs_output.py +201 -0
- volcenginesdkapig/models/ip_list_for_list_gateway_lbs_output.py +149 -0
- volcenginesdkapig/models/item_for_list_custom_domains_output.py +357 -0
- volcenginesdkapig/models/item_for_list_gateway_lbs_output.py +305 -0
- volcenginesdkapig/models/item_for_list_gateway_services_output.py +29 -29
- volcenginesdkapig/models/item_for_list_gateways_output.py +27 -1
- volcenginesdkapig/models/item_for_list_upstreams_output.py +1 -53
- volcenginesdkapig/models/{tag_for_list_gateway_services_output.py → label_for_create_upstream_version_input.py} +13 -13
- volcenginesdkapig/models/{tag_for_get_gateway_service_output.py → label_for_update_upstream_version_input.py} +13 -13
- volcenginesdkapig/models/list_custom_domains_request.py +201 -0
- volcenginesdkapig/models/list_custom_domains_response.py +149 -0
- volcenginesdkapig/models/list_gateway_lbs_request.py +124 -0
- volcenginesdkapig/models/list_gateway_lbs_response.py +149 -0
- volcenginesdkapig/models/list_upstreams_request.py +1 -27
- volcenginesdkapig/models/port_for_list_gateway_lbs_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_create_gateway_input.py +201 -0
- volcenginesdkapig/models/tls_trace_spec_for_get_gateway_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_list_gateways_output.py +149 -0
- volcenginesdkapig/models/tls_trace_spec_for_update_gateway_trace_input.py +201 -0
- volcenginesdkapig/models/trace_spec_for_create_gateway_input.py +201 -0
- volcenginesdkapig/models/trace_spec_for_get_gateway_output.py +201 -0
- volcenginesdkapig/models/trace_spec_for_list_gateways_output.py +201 -0
- volcenginesdkapig/models/trace_spec_for_update_gateway_trace_input.py +201 -0
- volcenginesdkapig/models/update_custom_domain_request.py +228 -0
- volcenginesdkapig/models/update_custom_domain_response.py +123 -0
- volcenginesdkapig/models/update_gateway_service_request.py +27 -1
- volcenginesdkapig/models/update_gateway_trace_request.py +150 -0
- volcenginesdkapig/models/update_gateway_trace_response.py +123 -0
- volcenginesdkapig/models/update_upstream_version_request.py +150 -0
- volcenginesdkapig/models/update_upstream_version_response.py +149 -0
- volcenginesdkapig/models/upstream_for_get_upstream_output.py +1 -53
- volcenginesdkapig/models/upstream_version_for_create_upstream_version_input.py +175 -0
- volcenginesdkapig/models/upstream_version_for_update_upstream_version_input.py +175 -0
- volcenginesdkapig20221112/__init__.py +12 -3
- volcenginesdkapig20221112/models/__init__.py +12 -3
- volcenginesdkapig/models/tag_for_list_upstreams_output.py → volcenginesdkapig20221112/models/allow_origin_for_create_route_input.py +25 -25
- volcenginesdkapig20221112/models/{tag_for_create_route_input.py → allow_origin_for_get_route_output.py} +24 -24
- volcenginesdkapig20221112/models/allow_origin_for_list_routes_output.py +149 -0
- volcenginesdkapig20221112/models/allow_origin_for_update_route_input.py +149 -0
- volcenginesdkapig20221112/models/cors_policy_setting_for_create_route_input.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_get_route_output.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_list_routes_output.py +159 -3
- volcenginesdkapig20221112/models/cors_policy_setting_for_update_route_input.py +159 -3
- volcenginesdkapig20221112/models/create_route_request.py +27 -53
- volcenginesdkapig20221112/models/fallback_setting_for_create_route_input.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_get_route_output.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_list_routes_output.py +175 -0
- volcenginesdkapig20221112/models/fallback_setting_for_update_route_input.py +175 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_create_route_input.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_get_route_output.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_list_routes_output.py +201 -0
- volcenginesdkapig20221112/models/fallback_upstream_for_update_route_input.py +201 -0
- volcenginesdkapig20221112/models/header_operation_for_create_route_input.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_get_route_output.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_list_routes_output.py +1 -27
- volcenginesdkapig20221112/models/header_operation_for_update_route_input.py +1 -27
- volcenginesdkapig20221112/models/item_for_list_routes_output.py +27 -53
- volcenginesdkapig20221112/models/list_routes_request.py +1 -27
- volcenginesdkapig20221112/models/route_for_get_route_output.py +27 -53
- volcenginesdkapig20221112/models/update_route_request.py +27 -1
- volcenginesdkarkruntime/resources/images/images.py +178 -4
- volcenginesdkarkruntime/types/images/__init__.py +3 -2
- volcenginesdkarkruntime/types/images/image_gen_completed_event.py +51 -0
- volcenginesdkarkruntime/types/images/image_gen_generating_event.py +53 -0
- volcenginesdkarkruntime/types/images/image_gen_stream_event.py +24 -0
- volcenginesdkarkruntime/types/images/images.py +6 -2
- volcenginesdkarkruntime/types/responses/mcp_input_item_param.py +109 -0
- volcenginesdkarkruntime/types/responses/mcp_tool.py +80 -0
- volcenginesdkarkruntime/types/responses/mcp_tool_param.py +78 -0
- volcenginesdkarkruntime/types/responses/response_create_params.py +2 -1
- volcenginesdkarkruntime/types/responses/response_input_param.py +5 -0
- volcenginesdkarkruntime/types/responses/response_item.py +4 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_arguments_delta_event.py +37 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_arguments_done_event.py +34 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_completed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_failed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_call_in_progress_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_item.py +110 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_completed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_failed_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_mcp_list_tools_in_progress_event.py +31 -0
- volcenginesdkarkruntime/types/responses/response_output_item.py +4 -0
- volcenginesdkarkruntime/types/responses/response_stream_event.py +18 -0
- volcenginesdkarkruntime/types/responses/response_tool_usage.py +32 -0
- volcenginesdkarkruntime/types/responses/response_usage.py +7 -0
- volcenginesdkarkruntime/types/responses/tool.py +3 -1
- volcenginesdkarkruntime/types/responses/tool_choice_mcp_param.py +29 -0
- volcenginesdkarkruntime/types/responses/tool_param.py +2 -1
- volcenginesdkarkruntime/types/responses/web_search_tool.py +49 -0
- volcenginesdkarkruntime/types/responses/web_search_tool_param.py +1 -1
- volcenginesdkcen/__init__.py +9 -0
- volcenginesdkcen/api/cen_api.py +388 -0
- volcenginesdkcen/models/__init__.py +9 -0
- volcenginesdkcen/models/associate_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/attach_instance_to_cen_response.py +1 -29
- volcenginesdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_billing_output.py +279 -0
- volcenginesdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_output.py +50 -24
- volcenginesdkcen/models/create_cen_bandwidth_package_request.py +27 -1
- volcenginesdkcen/models/create_cen_bandwidth_package_response.py +3 -29
- volcenginesdkcen/models/create_cen_inter_region_bandwidth_request.py +27 -1
- volcenginesdkcen/models/create_cen_inter_region_bandwidth_response.py +3 -29
- volcenginesdkcen/models/create_cen_request.py +3 -0
- volcenginesdkcen/models/create_cen_response.py +3 -29
- volcenginesdkcen/models/create_cen_service_route_entry_response.py +1 -29
- volcenginesdkcen/models/create_cen_summary_route_entry_response.py +1 -29
- volcenginesdkcen/models/delete_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/delete_cen_inter_region_bandwidth_response.py +1 -29
- volcenginesdkcen/models/delete_cen_response.py +1 -29
- volcenginesdkcen/models/delete_cen_service_route_entry_response.py +1 -29
- volcenginesdkcen/models/delete_cen_summary_route_entry_response.py +1 -29
- volcenginesdkcen/models/describe_cen_attached_instance_attributes_response.py +27 -27
- volcenginesdkcen/models/describe_cen_attached_instances_response.py +1 -27
- volcenginesdkcen/models/describe_cen_attributes_response.py +1 -27
- volcenginesdkcen/models/describe_cen_bandwidth_package_attributes_response.py +41 -41
- volcenginesdkcen/models/describe_cen_bandwidth_packages_billing_request.py +175 -0
- volcenginesdkcen/models/describe_cen_bandwidth_packages_billing_response.py +201 -0
- volcenginesdkcen/models/describe_cen_bandwidth_packages_response.py +1 -27
- volcenginesdkcen/models/describe_cen_inter_region_bandwidth_attributes_response.py +1 -27
- volcenginesdkcen/models/describe_cen_inter_region_bandwidths_response.py +1 -27
- volcenginesdkcen/models/describe_cen_route_entries_response.py +1 -27
- volcenginesdkcen/models/describe_cen_summary_route_entries_response.py +1 -27
- volcenginesdkcen/models/describe_cens_response.py +1 -27
- volcenginesdkcen/models/describe_grant_rules_to_cen_response.py +1 -27
- volcenginesdkcen/models/describe_instance_granted_rules_response.py +1 -27
- volcenginesdkcen/models/detach_instance_from_cen_response.py +1 -29
- volcenginesdkcen/models/disassociate_cen_bandwidth_package_response.py +1 -29
- volcenginesdkcen/models/grant_instance_to_cen_response.py +1 -29
- volcenginesdkcen/models/list_tags_for_resources_response.py +1 -27
- volcenginesdkcen/models/modify_cen_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_bandwidth_package_association_request.py +151 -0
- volcenginesdkcen/models/modify_cen_bandwidth_package_association_response.py +95 -0
- volcenginesdkcen/models/modify_cen_bandwidth_package_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_inter_region_bandwidth_attributes_request.py +27 -1
- volcenginesdkcen/models/modify_cen_inter_region_bandwidth_attributes_response.py +1 -29
- volcenginesdkcen/models/modify_cen_service_route_entry_attributes_response.py +1 -29
- volcenginesdkcen/models/publish_cen_route_entry_response.py +1 -29
- volcenginesdkcen/models/renew_cen_bandwidth_package_request.py +176 -0
- volcenginesdkcen/models/renew_cen_bandwidth_package_response.py +95 -0
- volcenginesdkcen/models/revoke_instance_from_cen_response.py +1 -29
- volcenginesdkcen/models/set_cen_bandwidth_package_renewal_request.py +203 -0
- volcenginesdkcen/models/set_cen_bandwidth_package_renewal_response.py +95 -0
- volcenginesdkcen/models/tag_filter_for_describe_cens_input.py +15 -15
- volcenginesdkcen/models/tag_resources_response.py +1 -29
- volcenginesdkcen/models/untag_resources_response.py +1 -29
- volcenginesdkcen/models/withdraw_cen_route_entry_response.py +1 -29
- volcenginesdkclb/__init__.py +2 -0
- volcenginesdkclb/api/clb_api.py +97 -0
- volcenginesdkclb/models/__init__.py +2 -0
- volcenginesdkclb/models/certificate_for_describe_nlb_listener_certificates_output.py +27 -1
- volcenginesdkclb/models/create_nlb_listener_request.py +157 -1
- volcenginesdkclb/models/describe_certificates_response.py +1 -53
- volcenginesdkclb/models/describe_load_balancers_request.py +53 -1
- volcenginesdkclb/models/describe_load_balancers_response.py +1 -27
- volcenginesdkclb/models/describe_nlb_listener_attributes_response.py +131 -1
- volcenginesdkclb/models/describe_nlb_listener_certificates_request.py +27 -1
- volcenginesdkclb/models/describe_nlb_server_group_attributes_response.py +1 -27
- volcenginesdkclb/models/modify_nlb_listener_additional_certificates_request.py +202 -0
- volcenginesdkclb/models/modify_nlb_listener_additional_certificates_response.py +123 -0
- volcenginesdkclb/models/modify_nlb_listener_attributes_request.py +157 -1
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdktransitrouter/__init__.py +49 -6
- volcenginesdktransitrouter/api/transitrouter_api.py +2318 -572
- volcenginesdktransitrouter/models/__init__.py +49 -4
- volcenginesdktransitrouter/models/associate_transit_router_multicast_domain_request.py +178 -0
- volcenginesdktransitrouter/models/associate_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_bandwidth_package_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_flow_log_request.py +388 -0
- volcenginesdktransitrouter/models/create_transit_router_flow_log_response.py +123 -0
- volcenginesdktransitrouter/models/create_transit_router_forward_policy_entry_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_multicast_domain_request.py +228 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_domain_response.py +123 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_member_request.py +204 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_member_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_source_request.py +204 -0
- volcenginesdktransitrouter/models/create_transit_router_multicast_group_source_response.py +95 -0
- volcenginesdktransitrouter/models/create_transit_router_request.py +27 -1
- volcenginesdktransitrouter/models/create_transit_router_route_policy_entry_request.py +27 -1
- volcenginesdktransitrouter/models/delete_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/delete_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_domain_request.py +124 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_member_request.py +178 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_member_response.py +95 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_source_request.py +178 -0
- volcenginesdktransitrouter/models/delete_transit_router_multicast_group_source_response.py +95 -0
- volcenginesdktransitrouter/models/describe_transit_router_flow_logs_request.py +386 -0
- volcenginesdktransitrouter/models/describe_transit_router_flow_logs_response.py +123 -0
- volcenginesdktransitrouter/models/describe_transit_router_forward_policy_entries_request.py +27 -1
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domain_associations_request.py +279 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domain_associations_response.py +201 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domains_request.py +254 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_domains_response.py +201 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_groups_request.py +435 -0
- volcenginesdktransitrouter/models/describe_transit_router_multicast_groups_response.py +123 -0
- volcenginesdktransitrouter/models/describe_transit_router_route_entries_request.py +79 -1
- volcenginesdktransitrouter/models/describe_transit_router_route_entries_response.py +55 -3
- volcenginesdktransitrouter/models/dissociate_transit_router_multicast_domain_request.py +178 -0
- volcenginesdktransitrouter/models/dissociate_transit_router_multicast_domain_response.py +95 -0
- volcenginesdktransitrouter/models/models.py +2198 -2208
- volcenginesdktransitrouter/models/modify_transit_router_flow_log_attributes_request.py +202 -0
- volcenginesdktransitrouter/models/modify_transit_router_flow_log_attributes_response.py +95 -0
- volcenginesdktransitrouter/models/modify_transit_router_forward_policy_entry_attributes_request.py +27 -1
- volcenginesdktransitrouter/models/modify_transit_router_multicast_domain_attributes_request.py +176 -0
- volcenginesdktransitrouter/models/modify_transit_router_multicast_domain_attributes_response.py +95 -0
- volcenginesdktransitrouter/models/modify_transit_router_route_policy_entry_attributes_request.py +27 -1
- volcenginesdktransitrouter/models/start_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/start_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/stop_transit_router_flow_log_request.py +124 -0
- volcenginesdktransitrouter/models/stop_transit_router_flow_log_response.py +95 -0
- volcenginesdktransitrouter/models/tag_filter_for_describe_transit_router_flow_logs_input.py +149 -0
- volcenginesdktransitrouter/models/tag_filter_for_describe_transit_router_multicast_domains_input.py +149 -0
- volcenginesdkapig/models/tag_for_get_gateway_output.py → volcenginesdktransitrouter/models/tag_for_create_transit_router_flow_log_input.py +14 -14
- volcenginesdkapig/models/tag_for_create_gateway_input.py → volcenginesdktransitrouter/models/tag_for_create_transit_router_multicast_domain_input.py +14 -14
- volcenginesdkapig/models/tag_for_create_upstream_input.py → volcenginesdktransitrouter/models/tag_for_describe_transit_router_multicast_domains_output.py +14 -14
- volcenginesdktransitrouter/models/transit_router_attachment_for_describe_transit_router_peer_attachments_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_attachment_for_describe_transit_router_vpn_attachments_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_flow_log_for_describe_transit_router_flow_logs_output.py +513 -0
- volcenginesdktransitrouter/models/transit_router_for_describe_transit_routers_output.py +27 -1
- volcenginesdktransitrouter/models/transit_router_multicast_domains_for_describe_transit_router_multicast_domains_output.py +279 -0
- volcenginesdktransitrouter/models/transit_router_multicast_group_for_describe_transit_router_multicast_groups_output.py +487 -0
- volcenginesdkapig/models/backend_spec_for_create_gateway_input.py +0 -149
- volcenginesdkapig/models/backend_spec_for_get_gateway_output.py +0 -149
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.17.dist-info → volcengine_python_sdk-4.0.18.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
apig
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ListGatewayLBsResponse(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'items': 'list[ItemForListGatewayLBsOutput]',
|
|
37
|
+
'total': 'int'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'items': 'Items',
|
|
42
|
+
'total': 'Total'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, items=None, total=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ListGatewayLBsResponse - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._items = None
|
|
52
|
+
self._total = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if items is not None:
|
|
56
|
+
self.items = items
|
|
57
|
+
if total is not None:
|
|
58
|
+
self.total = total
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def items(self):
|
|
62
|
+
"""Gets the items of this ListGatewayLBsResponse. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The items of this ListGatewayLBsResponse. # noqa: E501
|
|
66
|
+
:rtype: list[ItemForListGatewayLBsOutput]
|
|
67
|
+
"""
|
|
68
|
+
return self._items
|
|
69
|
+
|
|
70
|
+
@items.setter
|
|
71
|
+
def items(self, items):
|
|
72
|
+
"""Sets the items of this ListGatewayLBsResponse.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param items: The items of this ListGatewayLBsResponse. # noqa: E501
|
|
76
|
+
:type: list[ItemForListGatewayLBsOutput]
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._items = items
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def total(self):
|
|
83
|
+
"""Gets the total of this ListGatewayLBsResponse. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The total of this ListGatewayLBsResponse. # noqa: E501
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._total
|
|
90
|
+
|
|
91
|
+
@total.setter
|
|
92
|
+
def total(self, total):
|
|
93
|
+
"""Sets the total of this ListGatewayLBsResponse.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param total: The total of this ListGatewayLBsResponse. # noqa: E501
|
|
97
|
+
:type: int
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._total = total
|
|
101
|
+
|
|
102
|
+
def to_dict(self):
|
|
103
|
+
"""Returns the model properties as a dict"""
|
|
104
|
+
result = {}
|
|
105
|
+
|
|
106
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
107
|
+
value = getattr(self, attr)
|
|
108
|
+
if isinstance(value, list):
|
|
109
|
+
result[attr] = list(map(
|
|
110
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
111
|
+
value
|
|
112
|
+
))
|
|
113
|
+
elif hasattr(value, "to_dict"):
|
|
114
|
+
result[attr] = value.to_dict()
|
|
115
|
+
elif isinstance(value, dict):
|
|
116
|
+
result[attr] = dict(map(
|
|
117
|
+
lambda item: (item[0], item[1].to_dict())
|
|
118
|
+
if hasattr(item[1], "to_dict") else item,
|
|
119
|
+
value.items()
|
|
120
|
+
))
|
|
121
|
+
else:
|
|
122
|
+
result[attr] = value
|
|
123
|
+
if issubclass(ListGatewayLBsResponse, dict):
|
|
124
|
+
for key, value in self.items():
|
|
125
|
+
result[key] = value
|
|
126
|
+
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
def to_str(self):
|
|
130
|
+
"""Returns the string representation of the model"""
|
|
131
|
+
return pprint.pformat(self.to_dict())
|
|
132
|
+
|
|
133
|
+
def __repr__(self):
|
|
134
|
+
"""For `print` and `pprint`"""
|
|
135
|
+
return self.to_str()
|
|
136
|
+
|
|
137
|
+
def __eq__(self, other):
|
|
138
|
+
"""Returns true if both objects are equal"""
|
|
139
|
+
if not isinstance(other, ListGatewayLBsResponse):
|
|
140
|
+
return False
|
|
141
|
+
|
|
142
|
+
return self.to_dict() == other.to_dict()
|
|
143
|
+
|
|
144
|
+
def __ne__(self, other):
|
|
145
|
+
"""Returns true if both objects are not equal"""
|
|
146
|
+
if not isinstance(other, ListGatewayLBsResponse):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -37,7 +37,6 @@ class ListUpstreamsRequest(object):
|
|
|
37
37
|
'gateway_id': 'str',
|
|
38
38
|
'page_number': 'int',
|
|
39
39
|
'page_size': 'int',
|
|
40
|
-
'resource_type': 'str',
|
|
41
40
|
'source_type': 'str'
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -46,11 +45,10 @@ class ListUpstreamsRequest(object):
|
|
|
46
45
|
'gateway_id': 'GatewayId',
|
|
47
46
|
'page_number': 'PageNumber',
|
|
48
47
|
'page_size': 'PageSize',
|
|
49
|
-
'resource_type': 'ResourceType',
|
|
50
48
|
'source_type': 'SourceType'
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
def __init__(self, filter=None, gateway_id=None, page_number=None, page_size=None,
|
|
51
|
+
def __init__(self, filter=None, gateway_id=None, page_number=None, page_size=None, source_type=None, _configuration=None): # noqa: E501
|
|
54
52
|
"""ListUpstreamsRequest - a model defined in Swagger""" # noqa: E501
|
|
55
53
|
if _configuration is None:
|
|
56
54
|
_configuration = Configuration()
|
|
@@ -60,7 +58,6 @@ class ListUpstreamsRequest(object):
|
|
|
60
58
|
self._gateway_id = None
|
|
61
59
|
self._page_number = None
|
|
62
60
|
self._page_size = None
|
|
63
|
-
self._resource_type = None
|
|
64
61
|
self._source_type = None
|
|
65
62
|
self.discriminator = None
|
|
66
63
|
|
|
@@ -72,8 +69,6 @@ class ListUpstreamsRequest(object):
|
|
|
72
69
|
self.page_number = page_number
|
|
73
70
|
if page_size is not None:
|
|
74
71
|
self.page_size = page_size
|
|
75
|
-
if resource_type is not None:
|
|
76
|
-
self.resource_type = resource_type
|
|
77
72
|
if source_type is not None:
|
|
78
73
|
self.source_type = source_type
|
|
79
74
|
|
|
@@ -161,27 +156,6 @@ class ListUpstreamsRequest(object):
|
|
|
161
156
|
|
|
162
157
|
self._page_size = page_size
|
|
163
158
|
|
|
164
|
-
@property
|
|
165
|
-
def resource_type(self):
|
|
166
|
-
"""Gets the resource_type of this ListUpstreamsRequest. # noqa: E501
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
:return: The resource_type of this ListUpstreamsRequest. # noqa: E501
|
|
170
|
-
:rtype: str
|
|
171
|
-
"""
|
|
172
|
-
return self._resource_type
|
|
173
|
-
|
|
174
|
-
@resource_type.setter
|
|
175
|
-
def resource_type(self, resource_type):
|
|
176
|
-
"""Sets the resource_type of this ListUpstreamsRequest.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
:param resource_type: The resource_type of this ListUpstreamsRequest. # noqa: E501
|
|
180
|
-
:type: str
|
|
181
|
-
"""
|
|
182
|
-
|
|
183
|
-
self._resource_type = resource_type
|
|
184
|
-
|
|
185
159
|
@property
|
|
186
160
|
def source_type(self):
|
|
187
161
|
"""Gets the source_type of this ListUpstreamsRequest. # noqa: E501
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
apig
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class PortForListGatewayLBsOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'number': 'int',
|
|
37
|
+
'protocol': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'number': 'Number',
|
|
42
|
+
'protocol': 'Protocol'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, number=None, protocol=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""PortForListGatewayLBsOutput - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._number = None
|
|
52
|
+
self._protocol = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if number is not None:
|
|
56
|
+
self.number = number
|
|
57
|
+
if protocol is not None:
|
|
58
|
+
self.protocol = protocol
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def number(self):
|
|
62
|
+
"""Gets the number of this PortForListGatewayLBsOutput. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The number of this PortForListGatewayLBsOutput. # noqa: E501
|
|
66
|
+
:rtype: int
|
|
67
|
+
"""
|
|
68
|
+
return self._number
|
|
69
|
+
|
|
70
|
+
@number.setter
|
|
71
|
+
def number(self, number):
|
|
72
|
+
"""Sets the number of this PortForListGatewayLBsOutput.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param number: The number of this PortForListGatewayLBsOutput. # noqa: E501
|
|
76
|
+
:type: int
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._number = number
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def protocol(self):
|
|
83
|
+
"""Gets the protocol of this PortForListGatewayLBsOutput. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The protocol of this PortForListGatewayLBsOutput. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._protocol
|
|
90
|
+
|
|
91
|
+
@protocol.setter
|
|
92
|
+
def protocol(self, protocol):
|
|
93
|
+
"""Sets the protocol of this PortForListGatewayLBsOutput.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param protocol: The protocol of this PortForListGatewayLBsOutput. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._protocol = protocol
|
|
101
|
+
|
|
102
|
+
def to_dict(self):
|
|
103
|
+
"""Returns the model properties as a dict"""
|
|
104
|
+
result = {}
|
|
105
|
+
|
|
106
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
107
|
+
value = getattr(self, attr)
|
|
108
|
+
if isinstance(value, list):
|
|
109
|
+
result[attr] = list(map(
|
|
110
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
111
|
+
value
|
|
112
|
+
))
|
|
113
|
+
elif hasattr(value, "to_dict"):
|
|
114
|
+
result[attr] = value.to_dict()
|
|
115
|
+
elif isinstance(value, dict):
|
|
116
|
+
result[attr] = dict(map(
|
|
117
|
+
lambda item: (item[0], item[1].to_dict())
|
|
118
|
+
if hasattr(item[1], "to_dict") else item,
|
|
119
|
+
value.items()
|
|
120
|
+
))
|
|
121
|
+
else:
|
|
122
|
+
result[attr] = value
|
|
123
|
+
if issubclass(PortForListGatewayLBsOutput, dict):
|
|
124
|
+
for key, value in self.items():
|
|
125
|
+
result[key] = value
|
|
126
|
+
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
def to_str(self):
|
|
130
|
+
"""Returns the string representation of the model"""
|
|
131
|
+
return pprint.pformat(self.to_dict())
|
|
132
|
+
|
|
133
|
+
def __repr__(self):
|
|
134
|
+
"""For `print` and `pprint`"""
|
|
135
|
+
return self.to_str()
|
|
136
|
+
|
|
137
|
+
def __eq__(self, other):
|
|
138
|
+
"""Returns true if both objects are equal"""
|
|
139
|
+
if not isinstance(other, PortForListGatewayLBsOutput):
|
|
140
|
+
return False
|
|
141
|
+
|
|
142
|
+
return self.to_dict() == other.to_dict()
|
|
143
|
+
|
|
144
|
+
def __ne__(self, other):
|
|
145
|
+
"""Returns true if both objects are not equal"""
|
|
146
|
+
if not isinstance(other, PortForListGatewayLBsOutput):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
apig
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TLSTraceSpecForCreateGatewayInput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'iam_user_ak': 'str',
|
|
37
|
+
'iam_user_sk': 'str',
|
|
38
|
+
'project_id': 'str',
|
|
39
|
+
'trace_id': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'iam_user_ak': 'IAMUserAK',
|
|
44
|
+
'iam_user_sk': 'IAMUserSK',
|
|
45
|
+
'project_id': 'ProjectId',
|
|
46
|
+
'trace_id': 'TraceId'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, iam_user_ak=None, iam_user_sk=None, project_id=None, trace_id=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""TLSTraceSpecForCreateGatewayInput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._iam_user_ak = None
|
|
56
|
+
self._iam_user_sk = None
|
|
57
|
+
self._project_id = None
|
|
58
|
+
self._trace_id = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if iam_user_ak is not None:
|
|
62
|
+
self.iam_user_ak = iam_user_ak
|
|
63
|
+
if iam_user_sk is not None:
|
|
64
|
+
self.iam_user_sk = iam_user_sk
|
|
65
|
+
if project_id is not None:
|
|
66
|
+
self.project_id = project_id
|
|
67
|
+
if trace_id is not None:
|
|
68
|
+
self.trace_id = trace_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def iam_user_ak(self):
|
|
72
|
+
"""Gets the iam_user_ak of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The iam_user_ak of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._iam_user_ak
|
|
79
|
+
|
|
80
|
+
@iam_user_ak.setter
|
|
81
|
+
def iam_user_ak(self, iam_user_ak):
|
|
82
|
+
"""Sets the iam_user_ak of this TLSTraceSpecForCreateGatewayInput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param iam_user_ak: The iam_user_ak of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._iam_user_ak = iam_user_ak
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def iam_user_sk(self):
|
|
93
|
+
"""Gets the iam_user_sk of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The iam_user_sk of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._iam_user_sk
|
|
100
|
+
|
|
101
|
+
@iam_user_sk.setter
|
|
102
|
+
def iam_user_sk(self, iam_user_sk):
|
|
103
|
+
"""Sets the iam_user_sk of this TLSTraceSpecForCreateGatewayInput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param iam_user_sk: The iam_user_sk of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
107
|
+
:type: str
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._iam_user_sk = iam_user_sk
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def project_id(self):
|
|
114
|
+
"""Gets the project_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The project_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._project_id
|
|
121
|
+
|
|
122
|
+
@project_id.setter
|
|
123
|
+
def project_id(self, project_id):
|
|
124
|
+
"""Sets the project_id of this TLSTraceSpecForCreateGatewayInput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param project_id: The project_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._project_id = project_id
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def trace_id(self):
|
|
135
|
+
"""Gets the trace_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The trace_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._trace_id
|
|
142
|
+
|
|
143
|
+
@trace_id.setter
|
|
144
|
+
def trace_id(self, trace_id):
|
|
145
|
+
"""Sets the trace_id of this TLSTraceSpecForCreateGatewayInput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param trace_id: The trace_id of this TLSTraceSpecForCreateGatewayInput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._trace_id = trace_id
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(TLSTraceSpecForCreateGatewayInput, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, TLSTraceSpecForCreateGatewayInput):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, TLSTraceSpecForCreateGatewayInput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|