gcore 0.1.0a2__py3-none-any.whl → 0.3.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.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +5 -0
- gcore/_base_client.py +22 -2
- gcore/_client.py +9 -0
- gcore/_models.py +2 -0
- gcore/_types.py +2 -0
- gcore/_utils/_proxy.py +4 -1
- gcore/_utils/_resources_proxy.py +24 -0
- gcore/_version.py +1 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/baremetal/flavors.py +2 -2
- gcore/resources/cloud/baremetal/images.py +2 -2
- gcore/resources/cloud/baremetal/servers.py +280 -52
- gcore/resources/cloud/billing_reservations.py +24 -0
- gcore/resources/cloud/file_shares/file_shares.py +16 -0
- gcore/resources/cloud/floating_ips.py +4 -4
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +358 -8
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +206 -2
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +84 -4
- gcore/resources/cloud/inference/deployments/deployments.py +328 -10
- gcore/resources/cloud/instances/flavors.py +2 -2
- gcore/resources/cloud/instances/images.py +318 -2
- gcore/resources/cloud/instances/instances.py +534 -70
- gcore/resources/cloud/instances/interfaces.py +4 -4
- gcore/resources/cloud/load_balancers/flavors.py +2 -2
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +302 -20
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +326 -0
- gcore/resources/cloud/load_balancers/listeners.py +385 -20
- gcore/resources/cloud/load_balancers/load_balancers.py +392 -24
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +24 -0
- gcore/resources/cloud/load_balancers/pools/members.py +34 -6
- gcore/resources/cloud/load_balancers/pools/pools.py +388 -8
- gcore/resources/cloud/networks/networks.py +72 -16
- gcore/resources/cloud/networks/subnets.py +6 -6
- gcore/resources/cloud/registries/registries.py +6 -10
- gcore/resources/cloud/registries/users.py +4 -10
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +10 -10
- gcore/resources/cloud/secrets.py +56 -11
- gcore/resources/cloud/security_groups/security_groups.py +2 -2
- gcore/resources/cloud/ssh_keys.py +2 -2
- gcore/resources/cloud/tasks.py +203 -184
- gcore/resources/cloud/users/role_assignments.py +4 -4
- gcore/resources/cloud/volumes.py +18 -18
- gcore/resources/waap/__init__.py +131 -0
- gcore/resources/waap/advanced_rules.py +135 -0
- gcore/resources/waap/clients.py +135 -0
- gcore/resources/waap/custom_page_sets.py +805 -0
- gcore/resources/waap/domains/__init__.py +173 -0
- gcore/resources/waap/domains/advanced_rules.py +876 -0
- gcore/resources/waap/domains/analytics/__init__.py +33 -0
- gcore/resources/waap/domains/analytics/analytics.py +676 -0
- gcore/resources/waap/domains/analytics/requests.py +378 -0
- gcore/resources/waap/domains/api_discovery/__init__.py +33 -0
- gcore/resources/waap/domains/api_discovery/api_discovery.py +530 -0
- gcore/resources/waap/domains/api_discovery/scan_results.py +352 -0
- gcore/resources/waap/domains/api_path_groups.py +163 -0
- gcore/resources/waap/domains/api_paths.py +771 -0
- gcore/resources/waap/domains/custom_rules.py +889 -0
- gcore/resources/waap/domains/domains.py +914 -0
- gcore/resources/waap/domains/firewall_rules.py +884 -0
- gcore/resources/waap/domains/insight_silences.py +689 -0
- gcore/resources/waap/domains/insights.py +425 -0
- gcore/resources/waap/domains/policies.py +173 -0
- gcore/resources/waap/domains/settings.py +271 -0
- gcore/resources/waap/ip_info.py +1017 -0
- gcore/resources/waap/organizations.py +217 -0
- gcore/resources/waap/statistics.py +225 -0
- gcore/resources/waap/tags.py +233 -0
- gcore/resources/waap/waap.py +391 -0
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/allowed_address_pairs.py +2 -2
- gcore/types/cloud/baremetal/baremetal_server.py +1 -1
- gcore/types/cloud/baremetal/image_list_params.py +1 -1
- gcore/types/cloud/baremetal/server_create_params.py +9 -9
- gcore/types/cloud/baremetal/server_list_params.py +8 -8
- gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
- gcore/types/cloud/baremetal_flavor.py +3 -3
- gcore/types/cloud/billing_reservation_list_params.py +5 -0
- gcore/types/cloud/container_probe_config.py +1 -1
- gcore/types/cloud/container_probe_config_create_param.py +2 -3
- gcore/types/cloud/container_scale_triggers.py +2 -2
- gcore/types/cloud/file_share.py +3 -0
- gcore/types/cloud/file_share_list_params.py +7 -1
- gcore/types/cloud/floating_ip_detailed.py +1 -1
- gcore/types/cloud/floating_ip_list_params.py +2 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +21 -1
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_server.py +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +10 -10
- gcore/types/cloud/gpu_baremetal_flavor.py +3 -3
- gcore/types/cloud/image.py +1 -1
- gcore/types/cloud/inference/deployment_create_params.py +4 -4
- gcore/types/cloud/inference/deployment_update_params.py +206 -9
- gcore/types/cloud/inference/inference.py +5 -5
- gcore/types/cloud/instance.py +1 -1
- gcore/types/cloud/instance_create_params.py +8 -10
- gcore/types/cloud/instance_list_params.py +8 -8
- gcore/types/cloud/instances/flavor_list_suitable_params.py +4 -1
- gcore/types/cloud/instances/image_list_params.py +1 -1
- gcore/types/cloud/instances/instance_flavor.py +3 -3
- gcore/types/cloud/instances/interface_attach_params.py +10 -10
- gcore/types/cloud/load_balancer_create_params.py +17 -15
- gcore/types/cloud/load_balancer_flavor_detail.py +3 -3
- gcore/types/cloud/load_balancer_l7_policy.py +5 -5
- gcore/types/cloud/load_balancer_list_params.py +5 -5
- gcore/types/cloud/load_balancer_listener_detail.py +17 -17
- gcore/types/cloud/load_balancer_pool.py +13 -13
- gcore/types/cloud/load_balancer_pool_list.py +99 -4
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +5 -5
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +5 -5
- gcore/types/cloud/load_balancers/listener_create_params.py +6 -4
- gcore/types/cloud/load_balancers/listener_get_params.py +3 -1
- gcore/types/cloud/load_balancers/listener_list_params.py +4 -2
- gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +6 -4
- gcore/types/cloud/load_balancers/pool_list_params.py +5 -6
- gcore/types/cloud/load_balancers/pool_update_params.py +6 -4
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +2 -0
- gcore/types/cloud/load_balancers/pools/member_add_params.py +5 -3
- gcore/types/cloud/member.py +2 -2
- gcore/types/cloud/network.py +22 -22
- gcore/types/cloud/network_create_params.py +2 -0
- gcore/types/cloud/network_details.py +25 -24
- gcore/types/cloud/network_list_params.py +15 -10
- gcore/types/cloud/network_update_params.py +2 -0
- gcore/types/cloud/networks/subnet_create_params.py +1 -1
- gcore/types/cloud/networks/subnet_list_params.py +2 -2
- gcore/types/cloud/quota_get_all_response.py +18 -0
- gcore/types/cloud/quota_get_by_region_response.py +18 -0
- gcore/types/cloud/quotas/request_create_params.py +9 -0
- gcore/types/cloud/quotas/request_get_response.py +9 -0
- gcore/types/cloud/quotas/request_list_response.py +9 -0
- gcore/types/cloud/region.py +4 -4
- gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
- gcore/types/cloud/registries/user_create_params.py +3 -5
- gcore/types/cloud/registry_create_params.py +3 -5
- gcore/types/cloud/reserved_fixed_ip_create_params.py +2 -2
- gcore/types/cloud/reserved_fixed_ip_list_params.py +3 -3
- gcore/types/cloud/secret_list_params.py +24 -0
- gcore/types/cloud/security_group_list_params.py +1 -1
- gcore/types/cloud/session_persistence.py +1 -1
- gcore/types/cloud/ssh_key_created.py +3 -6
- gcore/types/cloud/task.py +1 -4
- gcore/types/cloud/task_list_params.py +56 -46
- gcore/types/cloud/users/role_assignment_create_params.py +1 -1
- gcore/types/cloud/users/role_assignment_update_params.py +1 -1
- gcore/types/cloud/volume_create_params.py +6 -6
- gcore/types/cloud/volume_list_params.py +3 -3
- gcore/types/waap/__init__.py +108 -0
- gcore/types/waap/client_me_response.py +34 -0
- gcore/types/waap/custom_page_set_create_params.py +35 -0
- gcore/types/waap/custom_page_set_list_params.py +25 -0
- gcore/types/waap/custom_page_set_preview_params.py +34 -0
- gcore/types/waap/custom_page_set_update_params.py +35 -0
- gcore/types/waap/domain_list_params.py +30 -0
- gcore/types/waap/domain_list_rule_sets_response.py +10 -0
- gcore/types/waap/domain_update_params.py +12 -0
- gcore/types/waap/domains/__init__.py +47 -0
- gcore/types/waap/domains/advanced_rule_create_params.py +80 -0
- gcore/types/waap/domains/advanced_rule_list_params.py +58 -0
- gcore/types/waap/domains/advanced_rule_update_params.py +83 -0
- gcore/types/waap/domains/analytics/__init__.py +5 -0
- gcore/types/waap/domains/analytics/request_list_params.py +53 -0
- gcore/types/waap/domains/analytics_get_event_statistics_params.py +34 -0
- gcore/types/waap/domains/analytics_list_ddos_attacks_params.py +28 -0
- gcore/types/waap/domains/analytics_list_ddos_info_params.py +31 -0
- gcore/types/waap/domains/analytics_list_event_traffic_params.py +26 -0
- gcore/types/waap/domains/analytics_list_event_traffic_response.py +10 -0
- gcore/types/waap/domains/api_discovery/__init__.py +7 -0
- gcore/types/waap/domains/api_discovery/scan_result_get_response.py +29 -0
- gcore/types/waap/domains/api_discovery/scan_result_list_params.py +41 -0
- gcore/types/waap/domains/api_discovery/scan_result_list_response.py +29 -0
- gcore/types/waap/domains/api_discovery_get_settings_response.py +36 -0
- gcore/types/waap/domains/api_discovery_scan_openapi_response.py +10 -0
- gcore/types/waap/domains/api_discovery_update_settings_params.py +34 -0
- gcore/types/waap/domains/api_discovery_update_settings_response.py +36 -0
- gcore/types/waap/domains/api_discovery_upload_openapi_params.py +19 -0
- gcore/types/waap/domains/api_discovery_upload_openapi_response.py +10 -0
- gcore/types/waap/domains/api_path_create_params.py +31 -0
- gcore/types/waap/domains/api_path_create_response.py +50 -0
- gcore/types/waap/domains/api_path_get_response.py +50 -0
- gcore/types/waap/domains/api_path_group_list_response.py +12 -0
- gcore/types/waap/domains/api_path_list_params.py +62 -0
- gcore/types/waap/domains/api_path_list_response.py +50 -0
- gcore/types/waap/domains/api_path_update_params.py +29 -0
- gcore/types/waap/domains/custom_rule_create_params.py +368 -0
- gcore/types/waap/domains/custom_rule_delete_multiple_params.py +13 -0
- gcore/types/waap/domains/custom_rule_list_params.py +35 -0
- gcore/types/waap/domains/custom_rule_update_params.py +371 -0
- gcore/types/waap/domains/firewall_rule_create_params.py +75 -0
- gcore/types/waap/domains/firewall_rule_delete_multiple_params.py +13 -0
- gcore/types/waap/domains/firewall_rule_list_params.py +33 -0
- gcore/types/waap/domains/firewall_rule_update_params.py +78 -0
- gcore/types/waap/domains/insight_list_params.py +34 -0
- gcore/types/waap/domains/insight_replace_params.py +17 -0
- gcore/types/waap/domains/insight_silence_create_params.py +28 -0
- gcore/types/waap/domains/insight_silence_list_params.py +33 -0
- gcore/types/waap/domains/insight_silence_update_params.py +28 -0
- gcore/types/waap/domains/setting_update_params.py +48 -0
- gcore/types/waap/ip_info_get_attack_time_series_params.py +12 -0
- gcore/types/waap/ip_info_get_attack_time_series_response.py +10 -0
- gcore/types/waap/ip_info_get_blocked_requests_params.py +15 -0
- gcore/types/waap/ip_info_get_blocked_requests_response.py +10 -0
- gcore/types/waap/ip_info_get_counts_params.py +19 -0
- gcore/types/waap/ip_info_get_ddos_attack_series_params.py +12 -0
- gcore/types/waap/ip_info_get_params.py +12 -0
- gcore/types/waap/ip_info_get_top_sessions_params.py +15 -0
- gcore/types/waap/ip_info_get_top_sessions_response.py +10 -0
- gcore/types/waap/ip_info_get_top_urls_params.py +15 -0
- gcore/types/waap/ip_info_get_top_urls_response.py +10 -0
- gcore/types/waap/ip_info_get_top_user_agents_params.py +15 -0
- gcore/types/waap/ip_info_get_top_user_agents_response.py +10 -0
- gcore/types/waap/ip_info_list_attacked_countries_params.py +12 -0
- gcore/types/waap/ip_info_list_attacked_countries_response.py +10 -0
- gcore/types/waap/organization_list_params.py +22 -0
- gcore/types/waap/statistic_get_usage_series_params.py +25 -0
- gcore/types/waap/tag_list_params.py +28 -0
- gcore/types/waap/waap_advanced_rule.py +83 -0
- gcore/types/waap/waap_advanced_rule_descriptor.py +49 -0
- gcore/types/waap/waap_advanced_rule_descriptor_list.py +15 -0
- gcore/types/waap/waap_block_csrf_page_data.py +28 -0
- gcore/types/waap/waap_block_csrf_page_data_param.py +28 -0
- gcore/types/waap/waap_block_page_data.py +28 -0
- gcore/types/waap/waap_block_page_data_param.py +28 -0
- gcore/types/waap/waap_blocked_statistics.py +36 -0
- gcore/types/waap/waap_captcha_page_data.py +31 -0
- gcore/types/waap/waap_captcha_page_data_param.py +31 -0
- gcore/types/waap/waap_common_tag.py +16 -0
- gcore/types/waap/waap_cookie_disabled_page_data.py +18 -0
- gcore/types/waap/waap_cookie_disabled_page_data_param.py +18 -0
- gcore/types/waap/waap_count_statistics.py +36 -0
- gcore/types/waap/waap_custom_page_preview.py +10 -0
- gcore/types/waap/waap_custom_page_set.py +36 -0
- gcore/types/waap/waap_custom_rule.py +373 -0
- gcore/types/waap/waap_customer_rule_state.py +7 -0
- gcore/types/waap/waap_ddos_attack.py +16 -0
- gcore/types/waap/waap_ddos_info.py +17 -0
- gcore/types/waap/waap_detailed_domain.py +37 -0
- gcore/types/waap/waap_domain_api_settings.py +22 -0
- gcore/types/waap/waap_domain_ddos_settings.py +31 -0
- gcore/types/waap/waap_domain_policy.py +29 -0
- gcore/types/waap/waap_domain_settings_model.py +15 -0
- gcore/types/waap/waap_domain_status.py +7 -0
- gcore/types/waap/waap_event_statistics.py +15 -0
- gcore/types/waap/waap_firewall_rule.py +78 -0
- gcore/types/waap/waap_get_account_overview_response.py +34 -0
- gcore/types/waap/waap_handshake_page_data.py +25 -0
- gcore/types/waap/waap_handshake_page_data_param.py +25 -0
- gcore/types/waap/waap_insight.py +38 -0
- gcore/types/waap/waap_insight_silence.py +28 -0
- gcore/types/waap/waap_insight_silence_sort_by.py +9 -0
- gcore/types/waap/waap_insight_sort_by.py +20 -0
- gcore/types/waap/waap_insight_status.py +7 -0
- gcore/types/waap/waap_ip_country_attack.py +16 -0
- gcore/types/waap/waap_ip_ddos_info_model.py +23 -0
- gcore/types/waap/waap_ip_info.py +57 -0
- gcore/types/waap/waap_ip_info_counts.py +16 -0
- gcore/types/waap/waap_javascript_disabled_page_data.py +18 -0
- gcore/types/waap/waap_javascript_disabled_page_data_param.py +18 -0
- gcore/types/waap/waap_network_details.py +17 -0
- gcore/types/waap/waap_organization.py +13 -0
- gcore/types/waap/waap_page_type.py +9 -0
- gcore/types/waap/waap_paginated_custom_page_set.py +22 -0
- gcore/types/waap/waap_paginated_ddos_attack.py +22 -0
- gcore/types/waap/waap_paginated_ddos_info.py +22 -0
- gcore/types/waap/waap_paginated_request_summary.py +22 -0
- gcore/types/waap/waap_pattern_matched_tag.py +37 -0
- gcore/types/waap/waap_policy_action.py +7 -0
- gcore/types/waap/waap_policy_mode.py +10 -0
- gcore/types/waap/waap_request_details.py +92 -0
- gcore/types/waap/waap_request_organization.py +13 -0
- gcore/types/waap/waap_request_summary.py +59 -0
- gcore/types/waap/waap_resolution.py +7 -0
- gcore/types/waap/waap_rule_action_type.py +7 -0
- gcore/types/waap/waap_rule_blocked_requests.py +16 -0
- gcore/types/waap/waap_rule_set.py +41 -0
- gcore/types/waap/waap_statistic_item.py +18 -0
- gcore/types/waap/waap_statistics_series.py +16 -0
- gcore/types/waap/waap_summary_domain.py +26 -0
- gcore/types/waap/waap_tag.py +16 -0
- gcore/types/waap/waap_time_series_attack.py +23 -0
- gcore/types/waap/waap_top_session.py +24 -0
- gcore/types/waap/waap_top_url.py +13 -0
- gcore/types/waap/waap_top_user_agent.py +13 -0
- gcore/types/waap/waap_traffic_metrics.py +68 -0
- gcore/types/waap/waap_traffic_type.py +28 -0
- gcore/types/waap/waap_user_agent_details.py +40 -0
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/METADATA +3 -3
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/RECORD +293 -126
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/WHEEL +0 -0
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -25,7 +25,7 @@ class ImageListParams(TypedDict, total=False):
|
|
|
25
25
|
tag_key_value: str
|
|
26
26
|
"""Filter by tag key-value pairs.
|
|
27
27
|
|
|
28
|
-
Must be a valid JSON string. 'curl -G --data-urlencode 'tag_key_value
|
|
28
|
+
Must be a valid JSON string. 'curl -G --data-urlencode '`tag_key_value`={"key":
|
|
29
29
|
"value"}' --url 'http://localhost:1111/v1/images/1/1'"
|
|
30
30
|
"""
|
|
31
31
|
|
|
@@ -34,16 +34,16 @@ class InstanceFlavor(BaseModel):
|
|
|
34
34
|
"""Number of available instances of given configuration"""
|
|
35
35
|
|
|
36
36
|
currency_code: Optional[str] = None
|
|
37
|
-
"""Currency code. Shown if the include_prices query parameter if set to true"""
|
|
37
|
+
"""Currency code. Shown if the `include_prices` query parameter if set to true"""
|
|
38
38
|
|
|
39
39
|
hardware_description: Optional[Dict[str, str]] = None
|
|
40
40
|
"""Additional hardware description"""
|
|
41
41
|
|
|
42
42
|
price_per_hour: Optional[float] = None
|
|
43
|
-
"""Price per hour. Shown if the include_prices query parameter if set to true"""
|
|
43
|
+
"""Price per hour. Shown if the `include_prices` query parameter if set to true"""
|
|
44
44
|
|
|
45
45
|
price_per_month: Optional[float] = None
|
|
46
|
-
"""Price per month. Shown if the include_prices query parameter if set to true"""
|
|
46
|
+
"""Price per month. Shown if the `include_prices` query parameter if set to true"""
|
|
47
47
|
|
|
48
48
|
price_status: Optional[Literal["error", "hide", "show"]] = None
|
|
49
49
|
"""Price status for the UI"""
|
|
@@ -58,10 +58,10 @@ class NewInterfaceExternalExtendSchemaWithDdosddosProfileField(TypedDict, total=
|
|
|
58
58
|
"""Name of DDoS profile field"""
|
|
59
59
|
|
|
60
60
|
field_value: object
|
|
61
|
-
"""Complex value. Only one of 'value' or 'field_value' must be specified."""
|
|
61
|
+
"""Complex value. Only one of 'value' or '`field_value`' must be specified."""
|
|
62
62
|
|
|
63
63
|
value: Optional[str]
|
|
64
|
-
"""Basic type value. Only one of 'value' or 'field_value' must be specified."""
|
|
64
|
+
"""Basic type value. Only one of 'value' or '`field_value`' must be specified."""
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
class NewInterfaceExternalExtendSchemaWithDDOSDDOSProfile(TypedDict, total=False):
|
|
@@ -112,10 +112,10 @@ class NewInterfaceSpecificSubnetSchemaDDOSProfileField(TypedDict, total=False):
|
|
|
112
112
|
"""Name of DDoS profile field"""
|
|
113
113
|
|
|
114
114
|
field_value: object
|
|
115
|
-
"""Complex value. Only one of 'value' or 'field_value' must be specified."""
|
|
115
|
+
"""Complex value. Only one of 'value' or '`field_value`' must be specified."""
|
|
116
116
|
|
|
117
117
|
value: Optional[str]
|
|
118
|
-
"""Basic type value. Only one of 'value' or 'field_value' must be specified."""
|
|
118
|
+
"""Basic type value. Only one of 'value' or '`field_value`' must be specified."""
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
class NewInterfaceSpecificSubnetSchemaDDOSProfile(TypedDict, total=False):
|
|
@@ -158,7 +158,7 @@ class NewInterfaceAnySubnetSchema(TypedDict, total=False):
|
|
|
158
158
|
"""List of security group IDs"""
|
|
159
159
|
|
|
160
160
|
type: str
|
|
161
|
-
"""Must be 'any_subnet'"""
|
|
161
|
+
"""Must be '`any_subnet`'"""
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
class NewInterfaceAnySubnetSchemaDDOSProfileField(TypedDict, total=False):
|
|
@@ -169,10 +169,10 @@ class NewInterfaceAnySubnetSchemaDDOSProfileField(TypedDict, total=False):
|
|
|
169
169
|
"""Name of DDoS profile field"""
|
|
170
170
|
|
|
171
171
|
field_value: object
|
|
172
|
-
"""Complex value. Only one of 'value' or 'field_value' must be specified."""
|
|
172
|
+
"""Complex value. Only one of 'value' or '`field_value`' must be specified."""
|
|
173
173
|
|
|
174
174
|
value: Optional[str]
|
|
175
|
-
"""Basic type value. Only one of 'value' or 'field_value' must be specified."""
|
|
175
|
+
"""Basic type value. Only one of 'value' or '`field_value`' must be specified."""
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
class NewInterfaceAnySubnetSchemaDDOSProfile(TypedDict, total=False):
|
|
@@ -212,7 +212,7 @@ class NewInterfaceReservedFixedIPSchema(TypedDict, total=False):
|
|
|
212
212
|
"""List of security group IDs"""
|
|
213
213
|
|
|
214
214
|
type: str
|
|
215
|
-
"""Must be 'reserved_fixed_ip'. Union tag"""
|
|
215
|
+
"""Must be '`reserved_fixed_ip`'. Union tag"""
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
class NewInterfaceReservedFixedIPSchemaDDOSProfileField(TypedDict, total=False):
|
|
@@ -223,10 +223,10 @@ class NewInterfaceReservedFixedIPSchemaDDOSProfileField(TypedDict, total=False):
|
|
|
223
223
|
"""Name of DDoS profile field"""
|
|
224
224
|
|
|
225
225
|
field_value: object
|
|
226
|
-
"""Complex value. Only one of 'value' or 'field_value' must be specified."""
|
|
226
|
+
"""Complex value. Only one of 'value' or '`field_value`' must be specified."""
|
|
227
227
|
|
|
228
228
|
value: Optional[str]
|
|
229
|
-
"""Basic type value. Only one of 'value' or 'field_value' must be specified."""
|
|
229
|
+
"""Basic type value. Only one of 'value' or '`field_value`' must be specified."""
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
class NewInterfaceReservedFixedIPSchemaDDOSProfile(TypedDict, total=False):
|
|
@@ -61,8 +61,9 @@ class LoadBalancerCreateParams(TypedDict, total=False):
|
|
|
61
61
|
"""
|
|
62
62
|
Preferred option to establish connectivity between load balancer and its pools
|
|
63
63
|
members. L2 provides best performance, L3 provides less IPs usage. It is taking
|
|
64
|
-
effect only if instance_id + ip_address is provided, not subnet_id +
|
|
65
|
-
because we're considering this as intentional subnet_id
|
|
64
|
+
effect only if `instance_id` + `ip_address` is provided, not `subnet_id` +
|
|
65
|
+
`ip_address`, because we're considering this as intentional `subnet_id`
|
|
66
|
+
specification.
|
|
66
67
|
"""
|
|
67
68
|
|
|
68
69
|
tags: TagUpdateMapParam
|
|
@@ -77,27 +78,28 @@ class LoadBalancerCreateParams(TypedDict, total=False):
|
|
|
77
78
|
|
|
78
79
|
vip_ip_family: InterfaceIPFamily
|
|
79
80
|
"""
|
|
80
|
-
IP family for load balancer subnet auto-selection if vip_network_id is
|
|
81
|
+
IP family for load balancer subnet auto-selection if `vip_network_id` is
|
|
82
|
+
specified
|
|
81
83
|
"""
|
|
82
84
|
|
|
83
85
|
vip_network_id: str
|
|
84
86
|
"""Network ID for load balancer.
|
|
85
87
|
|
|
86
88
|
If not specified, default external network will be used. Mutually exclusive with
|
|
87
|
-
vip_port_id
|
|
89
|
+
`vip_port_id`
|
|
88
90
|
"""
|
|
89
91
|
|
|
90
92
|
vip_port_id: str
|
|
91
93
|
"""Existing Reserved Fixed IP port ID for load balancer.
|
|
92
94
|
|
|
93
|
-
Mutually exclusive with vip_network_id
|
|
95
|
+
Mutually exclusive with `vip_network_id`
|
|
94
96
|
"""
|
|
95
97
|
|
|
96
98
|
vip_subnet_id: str
|
|
97
99
|
"""Subnet ID for load balancer.
|
|
98
100
|
|
|
99
|
-
If not specified, any subnet from vip_network_id will be selected. Ignored
|
|
100
|
-
vip_network_id is not specified.
|
|
101
|
+
If not specified, any subnet from `vip_network_id` will be selected. Ignored
|
|
102
|
+
when `vip_network_id` is not specified.
|
|
101
103
|
"""
|
|
102
104
|
|
|
103
105
|
|
|
@@ -176,7 +178,7 @@ class ListenerPoolMember(TypedDict, total=False):
|
|
|
176
178
|
"""true if enabled. Defaults to true"""
|
|
177
179
|
|
|
178
180
|
instance_id: Optional[str]
|
|
179
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
181
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
180
182
|
|
|
181
183
|
monitor_address: Optional[str]
|
|
182
184
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -187,11 +189,11 @@ class ListenerPoolMember(TypedDict, total=False):
|
|
|
187
189
|
monitor_port: Optional[int]
|
|
188
190
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
189
191
|
|
|
190
|
-
Default is null which monitors the member protocol_port
|
|
192
|
+
Default is null which monitors the member `protocol_port`.
|
|
191
193
|
"""
|
|
192
194
|
|
|
193
195
|
subnet_id: Optional[str]
|
|
194
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
196
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
195
197
|
|
|
196
198
|
weight: Optional[int]
|
|
197
199
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -205,7 +207,7 @@ class ListenerPoolSessionPersistence(TypedDict, total=False):
|
|
|
205
207
|
"""Should be set if app cookie or http cookie is used"""
|
|
206
208
|
|
|
207
209
|
persistence_granularity: Optional[str]
|
|
208
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
210
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
209
211
|
|
|
210
212
|
persistence_timeout: Optional[int]
|
|
211
213
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -282,7 +284,7 @@ class Listener(TypedDict, total=False):
|
|
|
282
284
|
insert_x_forwarded: bool
|
|
283
285
|
"""Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
|
|
284
286
|
|
|
285
|
-
Only used with HTTP or TERMINATED_HTTPS protocols.
|
|
287
|
+
Only used with HTTP or `TERMINATED_HTTPS` protocols.
|
|
286
288
|
"""
|
|
287
289
|
|
|
288
290
|
pools: Iterable[ListenerPool]
|
|
@@ -290,14 +292,14 @@ class Listener(TypedDict, total=False):
|
|
|
290
292
|
|
|
291
293
|
secret_id: str
|
|
292
294
|
"""
|
|
293
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
294
|
-
listener
|
|
295
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
296
|
+
PROMETHEUS listener
|
|
295
297
|
"""
|
|
296
298
|
|
|
297
299
|
sni_secret_id: List[str]
|
|
298
300
|
"""
|
|
299
301
|
List of secrets IDs containing PKCS12 format certificate/key bundles for
|
|
300
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
302
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
301
303
|
"""
|
|
302
304
|
|
|
303
305
|
timeout_client_data: Optional[int]
|
|
@@ -28,13 +28,13 @@ class LoadBalancerFlavorDetail(BaseModel):
|
|
|
28
28
|
"""Virtual CPU count. For bare metal flavors, it's a physical CPU count"""
|
|
29
29
|
|
|
30
30
|
currency_code: Optional[str] = None
|
|
31
|
-
"""Currency code. Shown if the include_prices query parameter if set to true"""
|
|
31
|
+
"""Currency code. Shown if the `include_prices` query parameter if set to true"""
|
|
32
32
|
|
|
33
33
|
price_per_hour: Optional[float] = None
|
|
34
|
-
"""Price per hour. Shown if the include_prices query parameter if set to true"""
|
|
34
|
+
"""Price per hour. Shown if the `include_prices` query parameter if set to true"""
|
|
35
35
|
|
|
36
36
|
price_per_month: Optional[float] = None
|
|
37
|
-
"""Price per month. Shown if the include_prices query parameter if set to true"""
|
|
37
|
+
"""Price per month. Shown if the `include_prices` query parameter if set to true"""
|
|
38
38
|
|
|
39
39
|
price_status: Optional[Literal["error", "hide", "show"]] = None
|
|
40
40
|
"""Price status for the UI"""
|
|
@@ -38,26 +38,26 @@ class LoadBalancerL7Policy(BaseModel):
|
|
|
38
38
|
redirect_http_code: Optional[int] = None
|
|
39
39
|
"""
|
|
40
40
|
Requests matching this policy will be redirected to the specified URL or Prefix
|
|
41
|
-
URL with the HTTP response code. Valid if action is REDIRECT_TO_URL or
|
|
42
|
-
REDIRECT_PREFIX
|
|
41
|
+
URL with the HTTP response code. Valid if action is `REDIRECT_TO_URL` or
|
|
42
|
+
`REDIRECT_PREFIX`. Valid options are 301, 302, 303, 307, or 308. Default is 302.
|
|
43
43
|
"""
|
|
44
44
|
|
|
45
45
|
redirect_pool_id: Optional[str] = None
|
|
46
46
|
"""Requests matching this policy will be redirected to the pool with this ID.
|
|
47
47
|
|
|
48
|
-
Only valid if action is REDIRECT_TO_POOL
|
|
48
|
+
Only valid if action is `REDIRECT_TO_POOL`.
|
|
49
49
|
"""
|
|
50
50
|
|
|
51
51
|
redirect_prefix: Optional[str] = None
|
|
52
52
|
"""Requests matching this policy will be redirected to this Prefix URL.
|
|
53
53
|
|
|
54
|
-
Only valid if action is REDIRECT_PREFIX
|
|
54
|
+
Only valid if action is `REDIRECT_PREFIX`.
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
redirect_url: Optional[str] = None
|
|
58
58
|
"""Requests matching this policy will be redirected to this URL.
|
|
59
59
|
|
|
60
|
-
Only valid if action is REDIRECT_TO_URL
|
|
60
|
+
Only valid if action is `REDIRECT_TO_URL`.
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
63
|
region: Optional[str] = None
|
|
@@ -30,10 +30,10 @@ class LoadBalancerListParams(TypedDict, total=False):
|
|
|
30
30
|
|
|
31
31
|
order_by: str
|
|
32
32
|
"""
|
|
33
|
-
Ordering Load Balancer list result by name, created_at
|
|
34
|
-
operating_status
|
|
35
|
-
fields of the load balancer and directions (name.asc), default is
|
|
36
|
-
"created_at
|
|
33
|
+
Ordering Load Balancer list result by name, `created_at`, `updated_at`,
|
|
34
|
+
`operating_status`, `provisioning_status`, `vip_address`, `vip_ip_family` and
|
|
35
|
+
flavor fields of the load balancer and directions (name.asc), default is
|
|
36
|
+
"`created_at`.asc"
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
show_stats: bool
|
|
@@ -45,7 +45,7 @@ class LoadBalancerListParams(TypedDict, total=False):
|
|
|
45
45
|
tag_key_value: str
|
|
46
46
|
"""Filter by tag key-value pairs.
|
|
47
47
|
|
|
48
|
-
Must be a valid JSON string. curl -G --data-urlencode "tag_key_value
|
|
48
|
+
Must be a valid JSON string. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
49
49
|
"value"}" --url "http://localhost:1111/v1/loadbalancers/1/1"
|
|
50
50
|
"""
|
|
51
51
|
|
|
@@ -23,21 +23,33 @@ class LoadBalancerListenerDetail(BaseModel):
|
|
|
23
23
|
id: str
|
|
24
24
|
"""Load balancer listener ID"""
|
|
25
25
|
|
|
26
|
+
allowed_cidrs: Optional[List[str]] = None
|
|
27
|
+
"""Network CIDRs from which service will be accessible"""
|
|
28
|
+
|
|
26
29
|
connection_limit: int
|
|
27
30
|
"""Limit of simultaneous connections"""
|
|
28
31
|
|
|
32
|
+
creator_task_id: Optional[str] = None
|
|
33
|
+
"""Task that created this entity"""
|
|
34
|
+
|
|
29
35
|
insert_headers: object
|
|
30
36
|
"""Dictionary of additional header insertion into HTTP headers.
|
|
31
37
|
|
|
32
|
-
Only used with HTTP and TERMINATED_HTTPS protocols.
|
|
38
|
+
Only used with HTTP and `TERMINATED_HTTPS` protocols.
|
|
33
39
|
"""
|
|
34
40
|
|
|
41
|
+
loadbalancer_id: Optional[str] = None
|
|
42
|
+
"""Load balancer ID"""
|
|
43
|
+
|
|
35
44
|
name: str
|
|
36
45
|
"""Load balancer listener name"""
|
|
37
46
|
|
|
38
47
|
operating_status: LoadBalancerOperatingStatus
|
|
39
48
|
"""Listener operating status"""
|
|
40
49
|
|
|
50
|
+
pool_count: Optional[int] = None
|
|
51
|
+
"""Number of pools (for UI)"""
|
|
52
|
+
|
|
41
53
|
protocol: LbListenerProtocol
|
|
42
54
|
"""Load balancer protocol"""
|
|
43
55
|
|
|
@@ -47,28 +59,16 @@ class LoadBalancerListenerDetail(BaseModel):
|
|
|
47
59
|
provisioning_status: ProvisioningStatus
|
|
48
60
|
"""Listener lifecycle status"""
|
|
49
61
|
|
|
50
|
-
allowed_cidrs: Optional[List[str]] = None
|
|
51
|
-
"""Network CIDRs from which service will be accessible"""
|
|
52
|
-
|
|
53
|
-
creator_task_id: Optional[str] = None
|
|
54
|
-
"""Task that created this entity"""
|
|
55
|
-
|
|
56
|
-
loadbalancer_id: Optional[str] = None
|
|
57
|
-
"""Load balancer ID"""
|
|
58
|
-
|
|
59
|
-
pool_count: Optional[int] = None
|
|
60
|
-
"""Number of pools (for UI)"""
|
|
61
|
-
|
|
62
62
|
secret_id: Optional[str] = None
|
|
63
63
|
"""
|
|
64
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
65
|
-
load balancer
|
|
64
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
65
|
+
PROMETHEUS load balancer
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
68
|
sni_secret_id: Optional[List[str]] = None
|
|
69
69
|
"""
|
|
70
70
|
List of secret's ID containing PKCS12 format certificate/key bundles for
|
|
71
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
71
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
72
72
|
"""
|
|
73
73
|
|
|
74
74
|
stats: Optional[LoadBalancerStatistics] = None
|
|
@@ -93,5 +93,5 @@ class LoadBalancerListenerDetail(BaseModel):
|
|
|
93
93
|
timeout_member_data: Optional[int] = None
|
|
94
94
|
"""Backend member inactivity timeout in milliseconds"""
|
|
95
95
|
|
|
96
|
-
user_list:
|
|
96
|
+
user_list: List[UserList]
|
|
97
97
|
"""Load balancer listener users list"""
|
|
@@ -31,9 +31,15 @@ class LoadBalancerPool(BaseModel):
|
|
|
31
31
|
ca_secret_id: Optional[str] = None
|
|
32
32
|
"""Secret ID of CA certificate bundle"""
|
|
33
33
|
|
|
34
|
+
creator_task_id: Optional[str] = None
|
|
35
|
+
"""Task that created this entity"""
|
|
36
|
+
|
|
34
37
|
crl_secret_id: Optional[str] = None
|
|
35
38
|
"""Secret ID of CA revocation list file"""
|
|
36
39
|
|
|
40
|
+
healthmonitor: Optional[HealthMonitor] = None
|
|
41
|
+
"""Health monitor parameters"""
|
|
42
|
+
|
|
37
43
|
lb_algorithm: LbAlgorithm
|
|
38
44
|
"""Load balancer algorithm"""
|
|
39
45
|
|
|
@@ -64,6 +70,13 @@ class LoadBalancerPool(BaseModel):
|
|
|
64
70
|
session_persistence: Optional[SessionPersistence] = None
|
|
65
71
|
"""Session persistence parameters"""
|
|
66
72
|
|
|
73
|
+
task_id: Optional[str] = None
|
|
74
|
+
"""The UUID of the active task that currently holds a lock on the resource.
|
|
75
|
+
|
|
76
|
+
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
77
|
+
the resource is not locked.
|
|
78
|
+
"""
|
|
79
|
+
|
|
67
80
|
timeout_client_data: Optional[int] = None
|
|
68
81
|
"""Frontend client inactivity timeout in milliseconds"""
|
|
69
82
|
|
|
@@ -72,16 +85,3 @@ class LoadBalancerPool(BaseModel):
|
|
|
72
85
|
|
|
73
86
|
timeout_member_data: Optional[int] = None
|
|
74
87
|
"""Backend member inactivity timeout in milliseconds"""
|
|
75
|
-
|
|
76
|
-
creator_task_id: Optional[str] = None
|
|
77
|
-
"""Task that created this entity"""
|
|
78
|
-
|
|
79
|
-
healthmonitor: Optional[HealthMonitor] = None
|
|
80
|
-
"""Health monitor parameters"""
|
|
81
|
-
|
|
82
|
-
task_id: Optional[str] = None
|
|
83
|
-
"""The UUID of the active task that currently holds a lock on the resource.
|
|
84
|
-
|
|
85
|
-
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
86
|
-
the resource is not locked.
|
|
87
|
-
"""
|
|
@@ -1,16 +1,111 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
3
|
+
from typing import List, Union, Optional
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
4
5
|
|
|
6
|
+
from .member import Member
|
|
5
7
|
from ..._models import BaseModel
|
|
6
|
-
from .
|
|
8
|
+
from .lb_algorithm import LbAlgorithm
|
|
9
|
+
from .health_monitor import HealthMonitor
|
|
10
|
+
from .lb_pool_protocol import LbPoolProtocol
|
|
11
|
+
from .provisioning_status import ProvisioningStatus
|
|
12
|
+
from .session_persistence import SessionPersistence
|
|
13
|
+
from .load_balancer_operating_status import LoadBalancerOperatingStatus
|
|
7
14
|
|
|
8
|
-
__all__ = [
|
|
15
|
+
__all__ = [
|
|
16
|
+
"LoadBalancerPoolList",
|
|
17
|
+
"Result",
|
|
18
|
+
"ResultListener",
|
|
19
|
+
"ResultLoadbalancer",
|
|
20
|
+
"ResultMember",
|
|
21
|
+
"ResultMemberLbPoolMemberSerializer",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ResultListener(BaseModel):
|
|
26
|
+
id: str
|
|
27
|
+
"""Resource ID"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ResultLoadbalancer(BaseModel):
|
|
31
|
+
id: str
|
|
32
|
+
"""Resource ID"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class ResultMemberLbPoolMemberSerializer(BaseModel):
|
|
36
|
+
id: str
|
|
37
|
+
"""Member ID must be provided if an existing member is being updated"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
ResultMember: TypeAlias = Union[ResultMemberLbPoolMemberSerializer, Member]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class Result(BaseModel):
|
|
44
|
+
id: str
|
|
45
|
+
"""Pool ID"""
|
|
46
|
+
|
|
47
|
+
ca_secret_id: Optional[str] = None
|
|
48
|
+
"""Secret ID of CA certificate bundle"""
|
|
49
|
+
|
|
50
|
+
creator_task_id: Optional[str] = None
|
|
51
|
+
"""Task that created this entity"""
|
|
52
|
+
|
|
53
|
+
crl_secret_id: Optional[str] = None
|
|
54
|
+
"""Secret ID of CA revocation list file"""
|
|
55
|
+
|
|
56
|
+
healthmonitor: Optional[HealthMonitor] = None
|
|
57
|
+
"""Health monitor parameters"""
|
|
58
|
+
|
|
59
|
+
lb_algorithm: LbAlgorithm
|
|
60
|
+
"""Load balancer algorithm"""
|
|
61
|
+
|
|
62
|
+
listeners: List[ResultListener]
|
|
63
|
+
"""Listeners IDs"""
|
|
64
|
+
|
|
65
|
+
loadbalancers: List[ResultLoadbalancer]
|
|
66
|
+
"""Load balancers IDs"""
|
|
67
|
+
|
|
68
|
+
members: List[ResultMember]
|
|
69
|
+
"""Pool members"""
|
|
70
|
+
|
|
71
|
+
name: str
|
|
72
|
+
"""Pool name"""
|
|
73
|
+
|
|
74
|
+
operating_status: LoadBalancerOperatingStatus
|
|
75
|
+
"""Pool operating status"""
|
|
76
|
+
|
|
77
|
+
protocol: LbPoolProtocol
|
|
78
|
+
"""Protocol"""
|
|
79
|
+
|
|
80
|
+
provisioning_status: ProvisioningStatus
|
|
81
|
+
"""Pool lifecycle status"""
|
|
82
|
+
|
|
83
|
+
secret_id: Optional[str] = None
|
|
84
|
+
"""Secret ID for TLS client authentication to the member servers"""
|
|
85
|
+
|
|
86
|
+
session_persistence: Optional[SessionPersistence] = None
|
|
87
|
+
"""Session persistence parameters"""
|
|
88
|
+
|
|
89
|
+
task_id: Optional[str] = None
|
|
90
|
+
"""The UUID of the active task that currently holds a lock on the resource.
|
|
91
|
+
|
|
92
|
+
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
93
|
+
the resource is not locked.
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
timeout_client_data: Optional[int] = None
|
|
97
|
+
"""Frontend client inactivity timeout in milliseconds"""
|
|
98
|
+
|
|
99
|
+
timeout_member_connect: Optional[int] = None
|
|
100
|
+
"""Backend member connection timeout in milliseconds"""
|
|
101
|
+
|
|
102
|
+
timeout_member_data: Optional[int] = None
|
|
103
|
+
"""Backend member inactivity timeout in milliseconds"""
|
|
9
104
|
|
|
10
105
|
|
|
11
106
|
class LoadBalancerPoolList(BaseModel):
|
|
12
107
|
count: int
|
|
13
108
|
"""Number of objects"""
|
|
14
109
|
|
|
15
|
-
results: List[
|
|
110
|
+
results: List[Result]
|
|
16
111
|
"""Objects"""
|
|
@@ -28,26 +28,26 @@ class L7PolicyCreateParams(TypedDict, total=False):
|
|
|
28
28
|
redirect_http_code: int
|
|
29
29
|
"""
|
|
30
30
|
Requests matching this policy will be redirected to the specified URL or Prefix
|
|
31
|
-
URL with the HTTP response code. Valid if action is REDIRECT_TO_URL or
|
|
32
|
-
REDIRECT_PREFIX
|
|
31
|
+
URL with the HTTP response code. Valid if action is `REDIRECT_TO_URL` or
|
|
32
|
+
`REDIRECT_PREFIX`. Valid options are 301, 302, 303, 307, or 308. Default is 302.
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
35
|
redirect_pool_id: str
|
|
36
36
|
"""Requests matching this policy will be redirected to the pool withthis ID.
|
|
37
37
|
|
|
38
|
-
Only valid if action is REDIRECT_TO_POOL
|
|
38
|
+
Only valid if action is `REDIRECT_TO_POOL`.
|
|
39
39
|
"""
|
|
40
40
|
|
|
41
41
|
redirect_prefix: str
|
|
42
42
|
"""Requests matching this policy will be redirected to this Prefix URL.
|
|
43
43
|
|
|
44
|
-
Only valid if action is REDIRECT_PREFIX
|
|
44
|
+
Only valid if action is `REDIRECT_PREFIX`.
|
|
45
45
|
"""
|
|
46
46
|
|
|
47
47
|
redirect_url: str
|
|
48
48
|
"""Requests matching this policy will be redirected to this URL.
|
|
49
49
|
|
|
50
|
-
Only valid if action is REDIRECT_TO_URL
|
|
50
|
+
Only valid if action is `REDIRECT_TO_URL`.
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
tags: List[str]
|
|
@@ -25,26 +25,26 @@ class L7PolicyReplaceParams(TypedDict, total=False):
|
|
|
25
25
|
redirect_http_code: int
|
|
26
26
|
"""
|
|
27
27
|
Requests matching this policy will be redirected to the specified URL or Prefix
|
|
28
|
-
URL with the HTTP response code. Valid if action is REDIRECT_TO_URL or
|
|
29
|
-
REDIRECT_PREFIX
|
|
28
|
+
URL with the HTTP response code. Valid if action is `REDIRECT_TO_URL` or
|
|
29
|
+
`REDIRECT_PREFIX`. Valid options are 301, 302, 303, 307, or 308. Default is 302.
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
redirect_pool_id: str
|
|
33
33
|
"""Requests matching this policy will be redirected to the pool with this ID.
|
|
34
34
|
|
|
35
|
-
Only valid if action is REDIRECT_TO_POOL
|
|
35
|
+
Only valid if action is `REDIRECT_TO_POOL`.
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
redirect_prefix: str
|
|
39
39
|
"""Requests matching this policy will be redirected to this Prefix URL.
|
|
40
40
|
|
|
41
|
-
Only valid if action is REDIRECT_PREFIX
|
|
41
|
+
Only valid if action is `REDIRECT_PREFIX`.
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
redirect_url: str
|
|
45
45
|
"""Requests matching this policy will be redirected to this URL.
|
|
46
46
|
|
|
47
|
-
Only valid if action is REDIRECT_TO_URL
|
|
47
|
+
Only valid if action is `REDIRECT_TO_URL`.
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
50
|
tags: List[str]
|
|
@@ -12,8 +12,10 @@ __all__ = ["ListenerCreateParams", "UserList"]
|
|
|
12
12
|
|
|
13
13
|
class ListenerCreateParams(TypedDict, total=False):
|
|
14
14
|
project_id: int
|
|
15
|
+
"""Project ID"""
|
|
15
16
|
|
|
16
17
|
region_id: int
|
|
18
|
+
"""Region ID"""
|
|
17
19
|
|
|
18
20
|
loadbalancer_id: Required[str]
|
|
19
21
|
"""Load balancer ID"""
|
|
@@ -36,19 +38,19 @@ class ListenerCreateParams(TypedDict, total=False):
|
|
|
36
38
|
insert_x_forwarded: bool
|
|
37
39
|
"""Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
|
|
38
40
|
|
|
39
|
-
Only used with HTTP or TERMINATED_HTTPS protocols.
|
|
41
|
+
Only used with HTTP or `TERMINATED_HTTPS` protocols.
|
|
40
42
|
"""
|
|
41
43
|
|
|
42
44
|
secret_id: str
|
|
43
45
|
"""
|
|
44
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
45
|
-
listener
|
|
46
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
47
|
+
PROMETHEUS listener
|
|
46
48
|
"""
|
|
47
49
|
|
|
48
50
|
sni_secret_id: List[str]
|
|
49
51
|
"""
|
|
50
52
|
List of secrets IDs containing PKCS12 format certificate/key bundles for
|
|
51
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
53
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
52
54
|
"""
|
|
53
55
|
|
|
54
56
|
timeout_client_data: Optional[int]
|
|
@@ -9,11 +9,13 @@ __all__ = ["ListenerListParams"]
|
|
|
9
9
|
|
|
10
10
|
class ListenerListParams(TypedDict, total=False):
|
|
11
11
|
project_id: int
|
|
12
|
+
"""Project ID"""
|
|
12
13
|
|
|
13
14
|
region_id: int
|
|
15
|
+
"""Region ID"""
|
|
14
16
|
|
|
15
17
|
loadbalancer_id: str
|
|
16
|
-
"""Load
|
|
18
|
+
"""Load Balancer ID"""
|
|
17
19
|
|
|
18
20
|
show_stats: bool
|
|
19
|
-
"""Show
|
|
21
|
+
"""Show stats"""
|