alibabacloud-agentrun20250910 5.0.0__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.
- alibabacloud_agentrun20250910/__init__.py +1 -0
- alibabacloud_agentrun20250910/client.py +3712 -0
- alibabacloud_agentrun20250910/models/__init__.py +579 -0
- alibabacloud_agentrun20250910/models/_activate_template_mcprequest.py +43 -0
- alibabacloud_agentrun20250910/models/_activate_template_mcpresponse.py +54 -0
- alibabacloud_agentrun20250910/models/_agent_runtime.py +261 -0
- alibabacloud_agentrun20250910/models/_agent_runtime_endpoint.py +110 -0
- alibabacloud_agentrun20250910/models/_agent_runtime_endpoint_result.py +55 -0
- alibabacloud_agentrun20250910/models/_agent_runtime_result.py +55 -0
- alibabacloud_agentrun20250910/models/_agent_runtime_version.py +79 -0
- alibabacloud_agentrun20250910/models/_agent_runtime_version_result.py +55 -0
- alibabacloud_agentrun20250910/models/_ai_fallback_config.py +44 -0
- alibabacloud_agentrun20250910/models/_ai_fallback_service_config.py +49 -0
- alibabacloud_agentrun20250910/models/_ai_service_config.py +67 -0
- alibabacloud_agentrun20250910/models/_apig_llmmodel.py +137 -0
- alibabacloud_agentrun20250910/models/_arms_configuration.py +43 -0
- alibabacloud_agentrun20250910/models/_attach_policy_config.py +49 -0
- alibabacloud_agentrun20250910/models/_browser.py +145 -0
- alibabacloud_agentrun20250910/models/_browser_automation_stream.py +41 -0
- alibabacloud_agentrun20250910/models/_browser_configuration.py +73 -0
- alibabacloud_agentrun20250910/models/_browser_live_view_stream.py +33 -0
- alibabacloud_agentrun20250910/models/_browser_oss_location.py +41 -0
- alibabacloud_agentrun20250910/models/_browser_recording_configuration.py +44 -0
- alibabacloud_agentrun20250910/models/_browser_result.py +55 -0
- alibabacloud_agentrun20250910/models/_browser_session_list_out.py +68 -0
- alibabacloud_agentrun20250910/models/_browser_session_out.py +83 -0
- alibabacloud_agentrun20250910/models/_browser_streams.py +47 -0
- alibabacloud_agentrun20250910/models/_browser_view_port.py +41 -0
- alibabacloud_agentrun20250910/models/_capconfig.py +49 -0
- alibabacloud_agentrun20250910/models/_cert_config.py +52 -0
- alibabacloud_agentrun20250910/models/_code_configuration.py +79 -0
- alibabacloud_agentrun20250910/models/_code_info.py +41 -0
- alibabacloud_agentrun20250910/models/_code_interpreter.py +134 -0
- alibabacloud_agentrun20250910/models/_code_interpreter_result.py +55 -0
- alibabacloud_agentrun20250910/models/_code_interpreter_session_config.py +54 -0
- alibabacloud_agentrun20250910/models/_code_interpreter_session_list_out.py +68 -0
- alibabacloud_agentrun20250910/models/_code_interpreter_session_out.py +94 -0
- alibabacloud_agentrun20250910/models/_common_result.py +54 -0
- alibabacloud_agentrun20250910/models/_container_configuration.py +62 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_input.py +62 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_request.py +39 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_input.py +219 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_request.py +39 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_agent_runtime_version_input.py +34 -0
- alibabacloud_agentrun20250910/models/_create_apig_llmmodel_input.py +83 -0
- alibabacloud_agentrun20250910/models/_create_browser_input.py +101 -0
- alibabacloud_agentrun20250910/models/_create_browser_request.py +37 -0
- alibabacloud_agentrun20250910/models/_create_browser_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_code_interpreter_input.py +107 -0
- alibabacloud_agentrun20250910/models/_create_code_interpreter_request.py +37 -0
- alibabacloud_agentrun20250910/models/_create_code_interpreter_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_credential_input.py +87 -0
- alibabacloud_agentrun20250910/models/_create_credential_output.py +124 -0
- alibabacloud_agentrun20250910/models/_create_credential_request.py +36 -0
- alibabacloud_agentrun20250910/models/_create_credential_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_custom_domain_input.py +92 -0
- alibabacloud_agentrun20250910/models/_create_domain_input.py +49 -0
- alibabacloud_agentrun20250910/models/_create_gateway_input.py +60 -0
- alibabacloud_agentrun20250910/models/_create_gateway_target_input.py +52 -0
- alibabacloud_agentrun20250910/models/_create_model_input.py +83 -0
- alibabacloud_agentrun20250910/models/_create_model_proxy_input.py +154 -0
- alibabacloud_agentrun20250910/models/_create_model_proxy_request.py +36 -0
- alibabacloud_agentrun20250910/models/_create_model_proxy_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_model_service_input.py +110 -0
- alibabacloud_agentrun20250910/models/_create_model_service_request.py +36 -0
- alibabacloud_agentrun20250910/models/_create_model_service_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_sandbox_input.py +75 -0
- alibabacloud_agentrun20250910/models/_create_sandbox_request.py +39 -0
- alibabacloud_agentrun20250910/models/_create_sandbox_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_template_input.py +210 -0
- alibabacloud_agentrun20250910/models/_create_template_request.py +39 -0
- alibabacloud_agentrun20250910/models/_create_template_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_tool_data.py +65 -0
- alibabacloud_agentrun20250910/models/_create_tool_input.py +80 -0
- alibabacloud_agentrun20250910/models/_create_tool_output.py +52 -0
- alibabacloud_agentrun20250910/models/_credential.py +124 -0
- alibabacloud_agentrun20250910/models/_credential_configuration.py +34 -0
- alibabacloud_agentrun20250910/models/_credential_list_item.py +89 -0
- alibabacloud_agentrun20250910/models/_credential_public_config.py +167 -0
- alibabacloud_agentrun20250910/models/_credential_result.py +52 -0
- alibabacloud_agentrun20250910/models/_custom_domain.py +106 -0
- alibabacloud_agentrun20250910/models/_custom_domain_result.py +55 -0
- alibabacloud_agentrun20250910/models/_custom_runtime_config.py +51 -0
- alibabacloud_agentrun20250910/models/_delete_agent_runtime_endpoint_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_agent_runtime_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_browser_out.py +49 -0
- alibabacloud_agentrun20250910/models/_delete_browser_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_browser_result.py +55 -0
- alibabacloud_agentrun20250910/models/_delete_code_interpreter_out.py +49 -0
- alibabacloud_agentrun20250910/models/_delete_code_interpreter_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_code_interpreter_result.py +55 -0
- alibabacloud_agentrun20250910/models/_delete_credential_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_model_proxy_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_model_proxy_result.py +52 -0
- alibabacloud_agentrun20250910/models/_delete_model_service_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_model_service_result.py +52 -0
- alibabacloud_agentrun20250910/models/_delete_sandbox_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_sandbox_result.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_template_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_template_result.py +54 -0
- alibabacloud_agentrun20250910/models/_deregister_service_input.py +36 -0
- alibabacloud_agentrun20250910/models/_domain_info.py +57 -0
- alibabacloud_agentrun20250910/models/_error_result.py +52 -0
- alibabacloud_agentrun20250910/models/_fclink_config.py +41 -0
- alibabacloud_agentrun20250910/models/_gateway.py +81 -0
- alibabacloud_agentrun20250910/models/_gateway_network_configuration.py +51 -0
- alibabacloud_agentrun20250910/models/_get_access_token_request.py +49 -0
- alibabacloud_agentrun20250910/models/_get_access_token_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_access_token_response_body.py +79 -0
- alibabacloud_agentrun20250910/models/_get_agent_runtime_endpoint_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_agent_runtime_request.py +34 -0
- alibabacloud_agentrun20250910/models/_get_agent_runtime_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_browser_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_browser_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_get_code_interpreter_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_code_interpreter_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_get_credential_output.py +124 -0
- alibabacloud_agentrun20250910/models/_get_credential_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_model_proxy_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_model_service_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_sandbox_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_template_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_tool_output.py +44 -0
- alibabacloud_agentrun20250910/models/_gray_traffic_weight.py +43 -0
- alibabacloud_agentrun20250910/models/_health_check_config.py +79 -0
- alibabacloud_agentrun20250910/models/_health_check_configuration.py +79 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_input.py +63 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_request.py +61 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_input.py +43 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_request.py +43 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtimes_input.py +63 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtimes_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtimes_request.py +70 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtimes_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_agent_runtimes_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_browser_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_list_browsers_input.py +50 -0
- alibabacloud_agentrun20250910/models/_list_browsers_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_browsers_request.py +61 -0
- alibabacloud_agentrun20250910/models/_list_browsers_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_browsers_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreter_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreters_input.py +50 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreters_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreters_request.py +52 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreters_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_code_interpreters_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_credentials_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_credentials_request.py +84 -0
- alibabacloud_agentrun20250910/models/_list_credentials_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_credentials_result.py +52 -0
- alibabacloud_agentrun20250910/models/_list_custom_domains_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_custom_domains_result.py +52 -0
- alibabacloud_agentrun20250910/models/_list_domains_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_gateways_output.py +60 -0
- alibabacloud_agentrun20250910/models/_list_model_providers_request.py +65 -0
- alibabacloud_agentrun20250910/models/_list_model_providers_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_model_providers_response_body.py +176 -0
- alibabacloud_agentrun20250910/models/_list_model_proxies_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_model_proxies_request.py +58 -0
- alibabacloud_agentrun20250910/models/_list_model_proxies_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_model_proxies_result.py +52 -0
- alibabacloud_agentrun20250910/models/_list_model_services_output.py +68 -0
- alibabacloud_agentrun20250910/models/_list_model_services_request.py +66 -0
- alibabacloud_agentrun20250910/models/_list_model_services_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_model_services_result.py +52 -0
- alibabacloud_agentrun20250910/models/_list_sandboxes_output.py +53 -0
- alibabacloud_agentrun20250910/models/_list_sandboxes_request.py +67 -0
- alibabacloud_agentrun20250910/models/_list_sandboxes_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_sandboxes_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_templates_output.py +72 -0
- alibabacloud_agentrun20250910/models/_list_templates_request.py +68 -0
- alibabacloud_agentrun20250910/models/_list_templates_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_templates_result.py +55 -0
- alibabacloud_agentrun20250910/models/_list_tools_output.py +68 -0
- alibabacloud_agentrun20250910/models/_llmapiconfiguration.py +101 -0
- alibabacloud_agentrun20250910/models/_llmdeploy_config.py +93 -0
- alibabacloud_agentrun20250910/models/_log_configuration.py +43 -0
- alibabacloud_agentrun20250910/models/_mcpapi.py +95 -0
- alibabacloud_agentrun20250910/models/_mcpapiconfiguration.py +65 -0
- alibabacloud_agentrun20250910/models/_mcpbackend_config.py +52 -0
- alibabacloud_agentrun20250910/models/_mcpmatch.py +36 -0
- alibabacloud_agentrun20250910/models/_mcppath_match.py +41 -0
- alibabacloud_agentrun20250910/models/_mcpserver_config.py +49 -0
- alibabacloud_agentrun20250910/models/_mcpservice_config.py +33 -0
- alibabacloud_agentrun20250910/models/_model.py +137 -0
- alibabacloud_agentrun20250910/models/_model_features.py +65 -0
- alibabacloud_agentrun20250910/models/_model_info_config.py +74 -0
- alibabacloud_agentrun20250910/models/_model_parameter_rule.py +75 -0
- alibabacloud_agentrun20250910/models/_model_properties.py +33 -0
- alibabacloud_agentrun20250910/models/_model_proxy.py +194 -0
- alibabacloud_agentrun20250910/models/_model_proxy_result.py +52 -0
- alibabacloud_agentrun20250910/models/_model_service.py +146 -0
- alibabacloud_agentrun20250910/models/_model_service_result.py +52 -0
- alibabacloud_agentrun20250910/models/_nasconfig.py +60 -0
- alibabacloud_agentrun20250910/models/_nasmount_config.py +49 -0
- alibabacloud_agentrun20250910/models/_network_configuration.py +59 -0
- alibabacloud_agentrun20250910/models/_oss_configuration.py +68 -0
- alibabacloud_agentrun20250910/models/_ossmount_config.py +44 -0
- alibabacloud_agentrun20250910/models/_ossmount_point.py +65 -0
- alibabacloud_agentrun20250910/models/_pagination_info.py +57 -0
- alibabacloud_agentrun20250910/models/_path_config.py +72 -0
- alibabacloud_agentrun20250910/models/_polar_fs_config.py +60 -0
- alibabacloud_agentrun20250910/models/_polar_fs_mount_config.py +49 -0
- alibabacloud_agentrun20250910/models/_policy_config.py +52 -0
- alibabacloud_agentrun20250910/models/_protocol_configuration.py +33 -0
- alibabacloud_agentrun20250910/models/_provider_settings.py +51 -0
- alibabacloud_agentrun20250910/models/_proxy_config.py +372 -0
- alibabacloud_agentrun20250910/models/_publish_runtime_version_input.py +43 -0
- alibabacloud_agentrun20250910/models/_publish_runtime_version_request.py +36 -0
- alibabacloud_agentrun20250910/models/_publish_runtime_version_response.py +54 -0
- alibabacloud_agentrun20250910/models/_recording_configuration.py +47 -0
- alibabacloud_agentrun20250910/models/_register_service_input.py +98 -0
- alibabacloud_agentrun20250910/models/_related_resource.py +49 -0
- alibabacloud_agentrun20250910/models/_related_workload.py +49 -0
- alibabacloud_agentrun20250910/models/_route_config.py +45 -0
- alibabacloud_agentrun20250910/models/_routing_configuration.py +45 -0
- alibabacloud_agentrun20250910/models/_sandbox.py +123 -0
- alibabacloud_agentrun20250910/models/_sandbox_health_check_out.py +36 -0
- alibabacloud_agentrun20250910/models/_sandbox_health_check_result.py +54 -0
- alibabacloud_agentrun20250910/models/_sandbox_result.py +57 -0
- alibabacloud_agentrun20250910/models/_service_config.py +44 -0
- alibabacloud_agentrun20250910/models/_service_result.py +54 -0
- alibabacloud_agentrun20250910/models/_start_browser_session_input.py +33 -0
- alibabacloud_agentrun20250910/models/_start_browser_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_start_code_interpreter_session_input.py +34 -0
- alibabacloud_agentrun20250910/models/_start_code_interpreter_session_result.py +53 -0
- alibabacloud_agentrun20250910/models/_stop_code_interpreter_session_result.py +42 -0
- alibabacloud_agentrun20250910/models/_stop_sandbox_response.py +54 -0
- alibabacloud_agentrun20250910/models/_stop_sandbox_result.py +52 -0
- alibabacloud_agentrun20250910/models/_stop_template_mcpresponse.py +54 -0
- alibabacloud_agentrun20250910/models/_target.py +55 -0
- alibabacloud_agentrun20250910/models/_target_configuration.py +55 -0
- alibabacloud_agentrun20250910/models/_target_service_config.py +57 -0
- alibabacloud_agentrun20250910/models/_template.py +352 -0
- alibabacloud_agentrun20250910/models/_template_result.py +57 -0
- alibabacloud_agentrun20250910/models/_tlsconfig.py +54 -0
- alibabacloud_agentrun20250910/models/_tool_info.py +100 -0
- alibabacloud_agentrun20250910/models/_tool_list_item.py +100 -0
- alibabacloud_agentrun20250910/models/_trigger_config.py +43 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_input.py +62 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_request.py +39 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_input.py +193 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_request.py +39 -0
- alibabacloud_agentrun20250910/models/_update_agent_runtime_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_apig_llmmodel_input.py +83 -0
- alibabacloud_agentrun20250910/models/_update_credential_input.py +60 -0
- alibabacloud_agentrun20250910/models/_update_credential_output.py +124 -0
- alibabacloud_agentrun20250910/models/_update_credential_request.py +36 -0
- alibabacloud_agentrun20250910/models/_update_credential_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_custom_domain_input.py +79 -0
- alibabacloud_agentrun20250910/models/_update_domain_input.py +41 -0
- alibabacloud_agentrun20250910/models/_update_model_input.py +83 -0
- alibabacloud_agentrun20250910/models/_update_model_proxy_input.py +93 -0
- alibabacloud_agentrun20250910/models/_update_model_proxy_request.py +36 -0
- alibabacloud_agentrun20250910/models/_update_model_proxy_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_model_service_input.py +98 -0
- alibabacloud_agentrun20250910/models/_update_model_service_request.py +36 -0
- alibabacloud_agentrun20250910/models/_update_model_service_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_target_configuration_input.py +44 -0
- alibabacloud_agentrun20250910/models/_update_template_input.py +177 -0
- alibabacloud_agentrun20250910/models/_update_template_request.py +48 -0
- alibabacloud_agentrun20250910/models/_update_template_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_tool_data.py +65 -0
- alibabacloud_agentrun20250910/models/_update_tool_input.py +49 -0
- alibabacloud_agentrun20250910/models/_update_tool_output.py +52 -0
- alibabacloud_agentrun20250910/models/_version_weight.py +43 -0
- alibabacloud_agentrun20250910/models/_view_port_configuration.py +47 -0
- alibabacloud_agentrun20250910-5.0.0.dist-info/LICENSE +13 -0
- alibabacloud_agentrun20250910-5.0.0.dist-info/METADATA +69 -0
- alibabacloud_agentrun20250910-5.0.0.dist-info/RECORD +282 -0
- alibabacloud_agentrun20250910-5.0.0.dist-info/WHEEL +5 -0
- alibabacloud_agentrun20250910-5.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from darabonba.model import DaraModel
|
|
8
|
+
|
|
9
|
+
class NetworkConfiguration(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
network_mode: str = None,
|
|
13
|
+
security_group_id: str = None,
|
|
14
|
+
vpc_id: str = None,
|
|
15
|
+
vswitch_ids: List[str] = None,
|
|
16
|
+
):
|
|
17
|
+
self.network_mode = network_mode
|
|
18
|
+
self.security_group_id = security_group_id
|
|
19
|
+
self.vpc_id = vpc_id
|
|
20
|
+
self.vswitch_ids = vswitch_ids
|
|
21
|
+
|
|
22
|
+
def validate(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def to_map(self):
|
|
26
|
+
result = dict()
|
|
27
|
+
_map = super().to_map()
|
|
28
|
+
if _map is not None:
|
|
29
|
+
result = _map
|
|
30
|
+
if self.network_mode is not None:
|
|
31
|
+
result['networkMode'] = self.network_mode
|
|
32
|
+
|
|
33
|
+
if self.security_group_id is not None:
|
|
34
|
+
result['securityGroupId'] = self.security_group_id
|
|
35
|
+
|
|
36
|
+
if self.vpc_id is not None:
|
|
37
|
+
result['vpcId'] = self.vpc_id
|
|
38
|
+
|
|
39
|
+
if self.vswitch_ids is not None:
|
|
40
|
+
result['vswitchIds'] = self.vswitch_ids
|
|
41
|
+
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_map(self, m: dict = None):
|
|
45
|
+
m = m or dict()
|
|
46
|
+
if m.get('networkMode') is not None:
|
|
47
|
+
self.network_mode = m.get('networkMode')
|
|
48
|
+
|
|
49
|
+
if m.get('securityGroupId') is not None:
|
|
50
|
+
self.security_group_id = m.get('securityGroupId')
|
|
51
|
+
|
|
52
|
+
if m.get('vpcId') is not None:
|
|
53
|
+
self.vpc_id = m.get('vpcId')
|
|
54
|
+
|
|
55
|
+
if m.get('vswitchIds') is not None:
|
|
56
|
+
self.vswitch_ids = m.get('vswitchIds')
|
|
57
|
+
|
|
58
|
+
return self
|
|
59
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class OssConfiguration(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
bucket_name: str = None,
|
|
11
|
+
mount_point: str = None,
|
|
12
|
+
permission: str = None,
|
|
13
|
+
prefix: str = None,
|
|
14
|
+
region: str = None,
|
|
15
|
+
):
|
|
16
|
+
# This parameter is required.
|
|
17
|
+
self.bucket_name = bucket_name
|
|
18
|
+
# This parameter is required.
|
|
19
|
+
self.mount_point = mount_point
|
|
20
|
+
self.permission = permission
|
|
21
|
+
# This parameter is required.
|
|
22
|
+
self.prefix = prefix
|
|
23
|
+
self.region = region
|
|
24
|
+
|
|
25
|
+
def validate(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def to_map(self):
|
|
29
|
+
result = dict()
|
|
30
|
+
_map = super().to_map()
|
|
31
|
+
if _map is not None:
|
|
32
|
+
result = _map
|
|
33
|
+
if self.bucket_name is not None:
|
|
34
|
+
result['bucketName'] = self.bucket_name
|
|
35
|
+
|
|
36
|
+
if self.mount_point is not None:
|
|
37
|
+
result['mountPoint'] = self.mount_point
|
|
38
|
+
|
|
39
|
+
if self.permission is not None:
|
|
40
|
+
result['permission'] = self.permission
|
|
41
|
+
|
|
42
|
+
if self.prefix is not None:
|
|
43
|
+
result['prefix'] = self.prefix
|
|
44
|
+
|
|
45
|
+
if self.region is not None:
|
|
46
|
+
result['region'] = self.region
|
|
47
|
+
|
|
48
|
+
return result
|
|
49
|
+
|
|
50
|
+
def from_map(self, m: dict = None):
|
|
51
|
+
m = m or dict()
|
|
52
|
+
if m.get('bucketName') is not None:
|
|
53
|
+
self.bucket_name = m.get('bucketName')
|
|
54
|
+
|
|
55
|
+
if m.get('mountPoint') is not None:
|
|
56
|
+
self.mount_point = m.get('mountPoint')
|
|
57
|
+
|
|
58
|
+
if m.get('permission') is not None:
|
|
59
|
+
self.permission = m.get('permission')
|
|
60
|
+
|
|
61
|
+
if m.get('prefix') is not None:
|
|
62
|
+
self.prefix = m.get('prefix')
|
|
63
|
+
|
|
64
|
+
if m.get('region') is not None:
|
|
65
|
+
self.region = m.get('region')
|
|
66
|
+
|
|
67
|
+
return self
|
|
68
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_agentrun20250910 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class OSSMountConfig(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
mount_points: List[main_models.OSSMountPoint] = None,
|
|
14
|
+
):
|
|
15
|
+
self.mount_points = mount_points
|
|
16
|
+
|
|
17
|
+
def validate(self):
|
|
18
|
+
if self.mount_points:
|
|
19
|
+
for v1 in self.mount_points:
|
|
20
|
+
if v1:
|
|
21
|
+
v1.validate()
|
|
22
|
+
|
|
23
|
+
def to_map(self):
|
|
24
|
+
result = dict()
|
|
25
|
+
_map = super().to_map()
|
|
26
|
+
if _map is not None:
|
|
27
|
+
result = _map
|
|
28
|
+
result['mountPoints'] = []
|
|
29
|
+
if self.mount_points is not None:
|
|
30
|
+
for k1 in self.mount_points:
|
|
31
|
+
result['mountPoints'].append(k1.to_map() if k1 else None)
|
|
32
|
+
|
|
33
|
+
return result
|
|
34
|
+
|
|
35
|
+
def from_map(self, m: dict = None):
|
|
36
|
+
m = m or dict()
|
|
37
|
+
self.mount_points = []
|
|
38
|
+
if m.get('mountPoints') is not None:
|
|
39
|
+
for k1 in m.get('mountPoints'):
|
|
40
|
+
temp_model = main_models.OSSMountPoint()
|
|
41
|
+
self.mount_points.append(temp_model.from_map(k1))
|
|
42
|
+
|
|
43
|
+
return self
|
|
44
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class OSSMountPoint(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
bucket_name: str = None,
|
|
11
|
+
bucket_path: str = None,
|
|
12
|
+
endpoint: str = None,
|
|
13
|
+
mount_dir: str = None,
|
|
14
|
+
read_only: bool = None,
|
|
15
|
+
):
|
|
16
|
+
self.bucket_name = bucket_name
|
|
17
|
+
self.bucket_path = bucket_path
|
|
18
|
+
self.endpoint = endpoint
|
|
19
|
+
self.mount_dir = mount_dir
|
|
20
|
+
self.read_only = read_only
|
|
21
|
+
|
|
22
|
+
def validate(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def to_map(self):
|
|
26
|
+
result = dict()
|
|
27
|
+
_map = super().to_map()
|
|
28
|
+
if _map is not None:
|
|
29
|
+
result = _map
|
|
30
|
+
if self.bucket_name is not None:
|
|
31
|
+
result['bucketName'] = self.bucket_name
|
|
32
|
+
|
|
33
|
+
if self.bucket_path is not None:
|
|
34
|
+
result['bucketPath'] = self.bucket_path
|
|
35
|
+
|
|
36
|
+
if self.endpoint is not None:
|
|
37
|
+
result['endpoint'] = self.endpoint
|
|
38
|
+
|
|
39
|
+
if self.mount_dir is not None:
|
|
40
|
+
result['mountDir'] = self.mount_dir
|
|
41
|
+
|
|
42
|
+
if self.read_only is not None:
|
|
43
|
+
result['readOnly'] = self.read_only
|
|
44
|
+
|
|
45
|
+
return result
|
|
46
|
+
|
|
47
|
+
def from_map(self, m: dict = None):
|
|
48
|
+
m = m or dict()
|
|
49
|
+
if m.get('bucketName') is not None:
|
|
50
|
+
self.bucket_name = m.get('bucketName')
|
|
51
|
+
|
|
52
|
+
if m.get('bucketPath') is not None:
|
|
53
|
+
self.bucket_path = m.get('bucketPath')
|
|
54
|
+
|
|
55
|
+
if m.get('endpoint') is not None:
|
|
56
|
+
self.endpoint = m.get('endpoint')
|
|
57
|
+
|
|
58
|
+
if m.get('mountDir') is not None:
|
|
59
|
+
self.mount_dir = m.get('mountDir')
|
|
60
|
+
|
|
61
|
+
if m.get('readOnly') is not None:
|
|
62
|
+
self.read_only = m.get('readOnly')
|
|
63
|
+
|
|
64
|
+
return self
|
|
65
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class PaginationInfo(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
limit: int = None,
|
|
11
|
+
page: int = None,
|
|
12
|
+
total: int = None,
|
|
13
|
+
total_pages: int = None,
|
|
14
|
+
):
|
|
15
|
+
self.limit = limit
|
|
16
|
+
self.page = page
|
|
17
|
+
self.total = total
|
|
18
|
+
self.total_pages = total_pages
|
|
19
|
+
|
|
20
|
+
def validate(self):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
def to_map(self):
|
|
24
|
+
result = dict()
|
|
25
|
+
_map = super().to_map()
|
|
26
|
+
if _map is not None:
|
|
27
|
+
result = _map
|
|
28
|
+
if self.limit is not None:
|
|
29
|
+
result['limit'] = self.limit
|
|
30
|
+
|
|
31
|
+
if self.page is not None:
|
|
32
|
+
result['page'] = self.page
|
|
33
|
+
|
|
34
|
+
if self.total is not None:
|
|
35
|
+
result['total'] = self.total
|
|
36
|
+
|
|
37
|
+
if self.total_pages is not None:
|
|
38
|
+
result['totalPages'] = self.total_pages
|
|
39
|
+
|
|
40
|
+
return result
|
|
41
|
+
|
|
42
|
+
def from_map(self, m: dict = None):
|
|
43
|
+
m = m or dict()
|
|
44
|
+
if m.get('limit') is not None:
|
|
45
|
+
self.limit = m.get('limit')
|
|
46
|
+
|
|
47
|
+
if m.get('page') is not None:
|
|
48
|
+
self.page = m.get('page')
|
|
49
|
+
|
|
50
|
+
if m.get('total') is not None:
|
|
51
|
+
self.total = m.get('total')
|
|
52
|
+
|
|
53
|
+
if m.get('totalPages') is not None:
|
|
54
|
+
self.total_pages = m.get('totalPages')
|
|
55
|
+
|
|
56
|
+
return self
|
|
57
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from darabonba.model import DaraModel
|
|
8
|
+
|
|
9
|
+
class PathConfig(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
agent_runtime_endpoint_name: str = None,
|
|
13
|
+
methods: List[str] = None,
|
|
14
|
+
path: str = None,
|
|
15
|
+
resource_name: str = None,
|
|
16
|
+
resource_type: str = None,
|
|
17
|
+
):
|
|
18
|
+
# agent runtime 版本(仅当 resourceType 为 runtime 时有效)
|
|
19
|
+
self.agent_runtime_endpoint_name = agent_runtime_endpoint_name
|
|
20
|
+
# 支持的方法有:HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS
|
|
21
|
+
self.methods = methods
|
|
22
|
+
# 此条路由规则对应的请求路径。
|
|
23
|
+
self.path = path
|
|
24
|
+
# 资源名称
|
|
25
|
+
self.resource_name = resource_name
|
|
26
|
+
# 资源类型(和凭证关联资源类型一致)
|
|
27
|
+
self.resource_type = resource_type
|
|
28
|
+
|
|
29
|
+
def validate(self):
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
def to_map(self):
|
|
33
|
+
result = dict()
|
|
34
|
+
_map = super().to_map()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
result = _map
|
|
37
|
+
if self.agent_runtime_endpoint_name is not None:
|
|
38
|
+
result['agentRuntimeEndpointName'] = self.agent_runtime_endpoint_name
|
|
39
|
+
|
|
40
|
+
if self.methods is not None:
|
|
41
|
+
result['methods'] = self.methods
|
|
42
|
+
|
|
43
|
+
if self.path is not None:
|
|
44
|
+
result['path'] = self.path
|
|
45
|
+
|
|
46
|
+
if self.resource_name is not None:
|
|
47
|
+
result['resourceName'] = self.resource_name
|
|
48
|
+
|
|
49
|
+
if self.resource_type is not None:
|
|
50
|
+
result['resourceType'] = self.resource_type
|
|
51
|
+
|
|
52
|
+
return result
|
|
53
|
+
|
|
54
|
+
def from_map(self, m: dict = None):
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('agentRuntimeEndpointName') is not None:
|
|
57
|
+
self.agent_runtime_endpoint_name = m.get('agentRuntimeEndpointName')
|
|
58
|
+
|
|
59
|
+
if m.get('methods') is not None:
|
|
60
|
+
self.methods = m.get('methods')
|
|
61
|
+
|
|
62
|
+
if m.get('path') is not None:
|
|
63
|
+
self.path = m.get('path')
|
|
64
|
+
|
|
65
|
+
if m.get('resourceName') is not None:
|
|
66
|
+
self.resource_name = m.get('resourceName')
|
|
67
|
+
|
|
68
|
+
if m.get('resourceType') is not None:
|
|
69
|
+
self.resource_type = m.get('resourceType')
|
|
70
|
+
|
|
71
|
+
return self
|
|
72
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_agentrun20250910 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class PolarFsConfig(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
group_id: int = None,
|
|
14
|
+
mount_points: List[main_models.PolarFsMountConfig] = None,
|
|
15
|
+
user_id: int = None,
|
|
16
|
+
):
|
|
17
|
+
self.group_id = group_id
|
|
18
|
+
self.mount_points = mount_points
|
|
19
|
+
self.user_id = user_id
|
|
20
|
+
|
|
21
|
+
def validate(self):
|
|
22
|
+
if self.mount_points:
|
|
23
|
+
for v1 in self.mount_points:
|
|
24
|
+
if v1:
|
|
25
|
+
v1.validate()
|
|
26
|
+
|
|
27
|
+
def to_map(self):
|
|
28
|
+
result = dict()
|
|
29
|
+
_map = super().to_map()
|
|
30
|
+
if _map is not None:
|
|
31
|
+
result = _map
|
|
32
|
+
if self.group_id is not None:
|
|
33
|
+
result['groupId'] = self.group_id
|
|
34
|
+
|
|
35
|
+
result['mountPoints'] = []
|
|
36
|
+
if self.mount_points is not None:
|
|
37
|
+
for k1 in self.mount_points:
|
|
38
|
+
result['mountPoints'].append(k1.to_map() if k1 else None)
|
|
39
|
+
|
|
40
|
+
if self.user_id is not None:
|
|
41
|
+
result['userId'] = self.user_id
|
|
42
|
+
|
|
43
|
+
return result
|
|
44
|
+
|
|
45
|
+
def from_map(self, m: dict = None):
|
|
46
|
+
m = m or dict()
|
|
47
|
+
if m.get('groupId') is not None:
|
|
48
|
+
self.group_id = m.get('groupId')
|
|
49
|
+
|
|
50
|
+
self.mount_points = []
|
|
51
|
+
if m.get('mountPoints') is not None:
|
|
52
|
+
for k1 in m.get('mountPoints'):
|
|
53
|
+
temp_model = main_models.PolarFsMountConfig()
|
|
54
|
+
self.mount_points.append(temp_model.from_map(k1))
|
|
55
|
+
|
|
56
|
+
if m.get('userId') is not None:
|
|
57
|
+
self.user_id = m.get('userId')
|
|
58
|
+
|
|
59
|
+
return self
|
|
60
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class PolarFsMountConfig(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
instance_id: str = None,
|
|
11
|
+
mount_dir: str = None,
|
|
12
|
+
remote_dir: str = None,
|
|
13
|
+
):
|
|
14
|
+
self.instance_id = instance_id
|
|
15
|
+
self.mount_dir = mount_dir
|
|
16
|
+
self.remote_dir = remote_dir
|
|
17
|
+
|
|
18
|
+
def validate(self):
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
def to_map(self):
|
|
22
|
+
result = dict()
|
|
23
|
+
_map = super().to_map()
|
|
24
|
+
if _map is not None:
|
|
25
|
+
result = _map
|
|
26
|
+
if self.instance_id is not None:
|
|
27
|
+
result['instanceId'] = self.instance_id
|
|
28
|
+
|
|
29
|
+
if self.mount_dir is not None:
|
|
30
|
+
result['mountDir'] = self.mount_dir
|
|
31
|
+
|
|
32
|
+
if self.remote_dir is not None:
|
|
33
|
+
result['remoteDir'] = self.remote_dir
|
|
34
|
+
|
|
35
|
+
return result
|
|
36
|
+
|
|
37
|
+
def from_map(self, m: dict = None):
|
|
38
|
+
m = m or dict()
|
|
39
|
+
if m.get('instanceId') is not None:
|
|
40
|
+
self.instance_id = m.get('instanceId')
|
|
41
|
+
|
|
42
|
+
if m.get('mountDir') is not None:
|
|
43
|
+
self.mount_dir = m.get('mountDir')
|
|
44
|
+
|
|
45
|
+
if m.get('remoteDir') is not None:
|
|
46
|
+
self.remote_dir = m.get('remoteDir')
|
|
47
|
+
|
|
48
|
+
return self
|
|
49
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from alibabacloud_agentrun20250910 import models as main_models
|
|
6
|
+
from darabonba.model import DaraModel
|
|
7
|
+
|
|
8
|
+
class PolicyConfig(DaraModel):
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
ai_fallback_config: main_models.AiFallbackConfig = None,
|
|
12
|
+
enable: bool = None,
|
|
13
|
+
type: str = None,
|
|
14
|
+
):
|
|
15
|
+
self.ai_fallback_config = ai_fallback_config
|
|
16
|
+
self.enable = enable
|
|
17
|
+
self.type = type
|
|
18
|
+
|
|
19
|
+
def validate(self):
|
|
20
|
+
if self.ai_fallback_config:
|
|
21
|
+
self.ai_fallback_config.validate()
|
|
22
|
+
|
|
23
|
+
def to_map(self):
|
|
24
|
+
result = dict()
|
|
25
|
+
_map = super().to_map()
|
|
26
|
+
if _map is not None:
|
|
27
|
+
result = _map
|
|
28
|
+
if self.ai_fallback_config is not None:
|
|
29
|
+
result['aiFallbackConfig'] = self.ai_fallback_config.to_map()
|
|
30
|
+
|
|
31
|
+
if self.enable is not None:
|
|
32
|
+
result['enable'] = self.enable
|
|
33
|
+
|
|
34
|
+
if self.type is not None:
|
|
35
|
+
result['type'] = self.type
|
|
36
|
+
|
|
37
|
+
return result
|
|
38
|
+
|
|
39
|
+
def from_map(self, m: dict = None):
|
|
40
|
+
m = m or dict()
|
|
41
|
+
if m.get('aiFallbackConfig') is not None:
|
|
42
|
+
temp_model = main_models.AiFallbackConfig()
|
|
43
|
+
self.ai_fallback_config = temp_model.from_map(m.get('aiFallbackConfig'))
|
|
44
|
+
|
|
45
|
+
if m.get('enable') is not None:
|
|
46
|
+
self.enable = m.get('enable')
|
|
47
|
+
|
|
48
|
+
if m.get('type') is not None:
|
|
49
|
+
self.type = m.get('type')
|
|
50
|
+
|
|
51
|
+
return self
|
|
52
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class ProtocolConfiguration(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
type: str = None,
|
|
11
|
+
):
|
|
12
|
+
self.type = type
|
|
13
|
+
|
|
14
|
+
def validate(self):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
def to_map(self):
|
|
18
|
+
result = dict()
|
|
19
|
+
_map = super().to_map()
|
|
20
|
+
if _map is not None:
|
|
21
|
+
result = _map
|
|
22
|
+
if self.type is not None:
|
|
23
|
+
result['type'] = self.type
|
|
24
|
+
|
|
25
|
+
return result
|
|
26
|
+
|
|
27
|
+
def from_map(self, m: dict = None):
|
|
28
|
+
m = m or dict()
|
|
29
|
+
if m.get('type') is not None:
|
|
30
|
+
self.type = m.get('type')
|
|
31
|
+
|
|
32
|
+
return self
|
|
33
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from darabonba.model import DaraModel
|
|
8
|
+
|
|
9
|
+
class ProviderSettings(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
api_key: str = None,
|
|
13
|
+
base_url: str = None,
|
|
14
|
+
model_names: List[str] = None,
|
|
15
|
+
):
|
|
16
|
+
self.api_key = api_key
|
|
17
|
+
self.base_url = base_url
|
|
18
|
+
self.model_names = model_names
|
|
19
|
+
|
|
20
|
+
def validate(self):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
def to_map(self):
|
|
24
|
+
result = dict()
|
|
25
|
+
_map = super().to_map()
|
|
26
|
+
if _map is not None:
|
|
27
|
+
result = _map
|
|
28
|
+
if self.api_key is not None:
|
|
29
|
+
result['apiKey'] = self.api_key
|
|
30
|
+
|
|
31
|
+
if self.base_url is not None:
|
|
32
|
+
result['baseUrl'] = self.base_url
|
|
33
|
+
|
|
34
|
+
if self.model_names is not None:
|
|
35
|
+
result['modelNames'] = self.model_names
|
|
36
|
+
|
|
37
|
+
return result
|
|
38
|
+
|
|
39
|
+
def from_map(self, m: dict = None):
|
|
40
|
+
m = m or dict()
|
|
41
|
+
if m.get('apiKey') is not None:
|
|
42
|
+
self.api_key = m.get('apiKey')
|
|
43
|
+
|
|
44
|
+
if m.get('baseUrl') is not None:
|
|
45
|
+
self.base_url = m.get('baseUrl')
|
|
46
|
+
|
|
47
|
+
if m.get('modelNames') is not None:
|
|
48
|
+
self.model_names = m.get('modelNames')
|
|
49
|
+
|
|
50
|
+
return self
|
|
51
|
+
|