gcore 0.2.0__py3-none-any.whl → 0.4.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 +2 -1
- gcore/_base_client.py +44 -2
- gcore/_client.py +9 -0
- gcore/_models.py +2 -0
- gcore/_types.py +2 -0
- gcore/_version.py +1 -1
- gcore/pagination.py +61 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/baremetal/flavors.py +11 -137
- gcore/resources/cloud/baremetal/images.py +10 -12
- gcore/resources/cloud/baremetal/servers.py +75 -78
- gcore/resources/cloud/billing_reservations.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +7 -8
- gcore/resources/cloud/floating_ips.py +9 -14
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +39 -28
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +11 -12
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -2
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +12 -8
- gcore/resources/cloud/inference/deployments/deployments.py +16 -8
- gcore/resources/cloud/inference/registry_credentials.py +2 -2
- gcore/resources/cloud/inference/secrets.py +8 -8
- gcore/resources/cloud/instances/flavors.py +9 -233
- gcore/resources/cloud/instances/images.py +47 -37
- gcore/resources/cloud/instances/instances.py +107 -100
- gcore/resources/cloud/instances/interfaces.py +6 -6
- gcore/resources/cloud/ip_ranges.py +34 -2
- gcore/resources/cloud/load_balancers/flavors.py +2 -2
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +30 -22
- gcore/resources/cloud/load_balancers/listeners.py +31 -22
- gcore/resources/cloud/load_balancers/load_balancers.py +99 -43
- gcore/resources/cloud/load_balancers/metrics.py +2 -2
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +2 -2
- gcore/resources/cloud/load_balancers/pools/members.py +12 -8
- gcore/resources/cloud/networks/networks.py +83 -19
- gcore/resources/cloud/networks/routers.py +18 -18
- gcore/resources/cloud/networks/subnets.py +55 -15
- gcore/resources/cloud/projects.py +38 -24
- gcore/resources/cloud/quotas/quotas.py +6 -6
- gcore/resources/cloud/quotas/requests.py +8 -8
- gcore/resources/cloud/registries/artifacts.py +4 -4
- gcore/resources/cloud/registries/registries.py +14 -20
- gcore/resources/cloud/registries/repositories.py +4 -4
- gcore/resources/cloud/registries/tags.py +2 -2
- gcore/resources/cloud/registries/users.py +25 -32
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +26 -26
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -10
- gcore/resources/cloud/security_groups/rules.py +6 -6
- gcore/resources/cloud/security_groups/security_groups.py +70 -31
- gcore/resources/cloud/ssh_keys.py +2 -2
- gcore/resources/cloud/tasks.py +102 -94
- gcore/resources/cloud/users/role_assignments.py +16 -18
- gcore/resources/cloud/volumes.py +155 -65
- gcore/resources/iam/__init__.py +47 -0
- gcore/resources/iam/api_tokens.py +521 -0
- gcore/resources/iam/iam.py +199 -0
- gcore/resources/iam/users.py +642 -0
- gcore/resources/waap/__init__.py +84 -0
- gcore/resources/waap/advanced_rules.py +135 -0
- gcore/resources/waap/custom_page_sets.py +805 -0
- gcore/resources/waap/domains/__init__.py +140 -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 +399 -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 +5 -5
- 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 +257 -0
- gcore/types/cloud/allowed_address_pairs.py +2 -2
- gcore/types/cloud/baremetal/__init__.py +0 -1
- gcore/types/cloud/baremetal/baremetal_server.py +1 -1
- gcore/types/cloud/baremetal/image_list_params.py +1 -5
- gcore/types/cloud/baremetal/server_create_params.py +13 -17
- gcore/types/cloud/baremetal/server_list_params.py +8 -12
- gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
- gcore/types/cloud/baremetal_flavor.py +3 -3
- gcore/types/cloud/container_probe_config.py +1 -1
- gcore/types/cloud/container_probe_config_create_param.py +1 -1
- gcore/types/cloud/container_scale_triggers.py +2 -2
- gcore/types/cloud/ddos_profile.py +9 -3
- gcore/types/cloud/file_share_create_params.py +3 -5
- gcore/types/cloud/floating_ip_create_params.py +2 -4
- gcore/types/cloud/floating_ip_detailed.py +1 -1
- gcore/types/cloud/floating_ip_list_params.py +2 -6
- gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +4 -5
- 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 +3 -5
- 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/health_monitor.py +6 -1
- 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 +6 -6
- gcore/types/cloud/inference/inference.py +2 -4
- gcore/types/cloud/instance.py +1 -1
- gcore/types/cloud/instance_create_params.py +15 -18
- gcore/types/cloud/instance_list_params.py +8 -12
- gcore/types/cloud/instances/__init__.py +0 -2
- gcore/types/cloud/instances/image_create_from_volume_params.py +2 -4
- gcore/types/cloud/instances/image_list_params.py +1 -5
- gcore/types/cloud/instances/image_upload_params.py +2 -4
- 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 +25 -19
- 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 -9
- gcore/types/cloud/load_balancer_listener_detail.py +4 -4
- gcore/types/cloud/load_balancer_update_params.py +24 -0
- 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 +4 -4
- gcore/types/cloud/load_balancers/listener_update_params.py +3 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +10 -5
- gcore/types/cloud/load_balancers/pool_update_params.py +10 -5
- gcore/types/cloud/load_balancers/pools/member_add_params.py +9 -4
- gcore/types/cloud/member.py +8 -3
- gcore/types/cloud/network.py +2 -2
- gcore/types/cloud/network_create_params.py +2 -3
- gcore/types/cloud/network_details.py +2 -2
- gcore/types/cloud/network_list_params.py +5 -6
- gcore/types/cloud/network_update_params.py +28 -2
- gcore/types/cloud/networks/router_list_params.py +2 -2
- gcore/types/cloud/networks/subnet_create_params.py +3 -4
- gcore/types/cloud/networks/subnet_list_params.py +2 -6
- gcore/types/cloud/networks/subnet_update_params.py +25 -0
- gcore/types/cloud/region.py +4 -4
- gcore/types/cloud/registries/__init__.py +1 -0
- gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
- gcore/types/cloud/registries/user_create_params.py +3 -5
- gcore/types/cloud/registries/user_refresh_secret_response.py +31 -0
- 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/security_group_list_params.py +3 -7
- gcore/types/cloud/security_group_update_params.py +25 -0
- gcore/types/cloud/session_persistence.py +1 -1
- gcore/types/cloud/ssh_key_created.py +3 -6
- gcore/types/cloud/tag_update_map_param.py +2 -2
- gcore/types/cloud/task.py +1 -1
- gcore/types/cloud/task_list_params.py +49 -45
- 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 -7
- gcore/types/cloud/volume_update_params.py +29 -3
- gcore/types/iam/__init__.py +17 -0
- gcore/types/iam/account_overview.py +488 -0
- gcore/types/iam/api_token.py +78 -0
- gcore/types/iam/api_token_create.py +15 -0
- gcore/types/iam/api_token_create_params.py +42 -0
- gcore/types/iam/api_token_list.py +81 -0
- gcore/types/iam/api_token_list_params.py +41 -0
- gcore/types/iam/user.py +86 -0
- gcore/types/iam/user_detailed.py +104 -0
- gcore/types/iam/user_invite.py +15 -0
- gcore/types/iam/user_invite_params.py +37 -0
- gcore/types/iam/user_list_params.py +15 -0
- gcore/types/iam/user_update.py +104 -0
- gcore/types/iam/user_update_params.py +52 -0
- gcore/types/waap/__init__.py +97 -2
- 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_rule_sets_response.py +10 -0
- gcore/types/waap/domains/__init__.py +42 -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 +372 -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 +375 -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 +7 -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 +377 -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_api_urls.py → waap_domain_api_settings.py} +9 -2
- gcore/types/waap/waap_domain_policy.py +29 -0
- gcore/types/waap/{waap_domain_settings.py → waap_domain_settings_model.py} +4 -4
- 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_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.2.0.dist-info → gcore-0.4.0.dist-info}/METADATA +40 -3
- {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/RECORD +312 -149
- gcore/types/cloud/baremetal/flavor_list_suitable_params.py +0 -22
- gcore/types/cloud/instances/flavor_list_for_resize_params.py +0 -16
- gcore/types/cloud/instances/flavor_list_suitable_params.py +0 -56
- {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/WHEEL +0 -0
- {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -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):
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List, Union, Iterable, Optional
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .http_method import HTTPMethod
|
|
@@ -10,7 +10,6 @@ from .lb_algorithm import LbAlgorithm
|
|
|
10
10
|
from .lb_pool_protocol import LbPoolProtocol
|
|
11
11
|
from .interface_ip_family import InterfaceIPFamily
|
|
12
12
|
from .lb_listener_protocol import LbListenerProtocol
|
|
13
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
14
13
|
from .lb_health_monitor_type import LbHealthMonitorType
|
|
15
14
|
from .lb_session_persistence_type import LbSessionPersistenceType
|
|
16
15
|
from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
@@ -61,11 +60,12 @@ class LoadBalancerCreateParams(TypedDict, total=False):
|
|
|
61
60
|
"""
|
|
62
61
|
Preferred option to establish connectivity between load balancer and its pools
|
|
63
62
|
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
|
|
63
|
+
effect only if `instance_id` + `ip_address` is provided, not `subnet_id` +
|
|
64
|
+
`ip_address`, because we're considering this as intentional `subnet_id`
|
|
65
|
+
specification.
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
|
-
tags:
|
|
68
|
+
tags: Dict[str, str]
|
|
69
69
|
"""Key-value tags to associate with the resource.
|
|
70
70
|
|
|
71
71
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -77,27 +77,28 @@ class LoadBalancerCreateParams(TypedDict, total=False):
|
|
|
77
77
|
|
|
78
78
|
vip_ip_family: InterfaceIPFamily
|
|
79
79
|
"""
|
|
80
|
-
IP family for load balancer subnet auto-selection if vip_network_id is
|
|
80
|
+
IP family for load balancer subnet auto-selection if `vip_network_id` is
|
|
81
|
+
specified
|
|
81
82
|
"""
|
|
82
83
|
|
|
83
84
|
vip_network_id: str
|
|
84
85
|
"""Network ID for load balancer.
|
|
85
86
|
|
|
86
87
|
If not specified, default external network will be used. Mutually exclusive with
|
|
87
|
-
vip_port_id
|
|
88
|
+
`vip_port_id`
|
|
88
89
|
"""
|
|
89
90
|
|
|
90
91
|
vip_port_id: str
|
|
91
92
|
"""Existing Reserved Fixed IP port ID for load balancer.
|
|
92
93
|
|
|
93
|
-
Mutually exclusive with vip_network_id
|
|
94
|
+
Mutually exclusive with `vip_network_id`
|
|
94
95
|
"""
|
|
95
96
|
|
|
96
97
|
vip_subnet_id: str
|
|
97
98
|
"""Subnet ID for load balancer.
|
|
98
99
|
|
|
99
|
-
If not specified, any subnet from vip_network_id will be selected. Ignored
|
|
100
|
-
vip_network_id is not specified.
|
|
100
|
+
If not specified, any subnet from `vip_network_id` will be selected. Ignored
|
|
101
|
+
when `vip_network_id` is not specified.
|
|
101
102
|
"""
|
|
102
103
|
|
|
103
104
|
|
|
@@ -173,10 +174,15 @@ class ListenerPoolMember(TypedDict, total=False):
|
|
|
173
174
|
"""Member IP port"""
|
|
174
175
|
|
|
175
176
|
admin_state_up: Optional[bool]
|
|
176
|
-
"""
|
|
177
|
+
"""Administrative state of the resource.
|
|
178
|
+
|
|
179
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
180
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
181
|
+
value is skipped and defaults to true.
|
|
182
|
+
"""
|
|
177
183
|
|
|
178
184
|
instance_id: Optional[str]
|
|
179
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
185
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
180
186
|
|
|
181
187
|
monitor_address: Optional[str]
|
|
182
188
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -187,11 +193,11 @@ class ListenerPoolMember(TypedDict, total=False):
|
|
|
187
193
|
monitor_port: Optional[int]
|
|
188
194
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
189
195
|
|
|
190
|
-
Default is null which monitors the member protocol_port
|
|
196
|
+
Default is null which monitors the member `protocol_port`.
|
|
191
197
|
"""
|
|
192
198
|
|
|
193
199
|
subnet_id: Optional[str]
|
|
194
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
200
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
195
201
|
|
|
196
202
|
weight: Optional[int]
|
|
197
203
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -205,7 +211,7 @@ class ListenerPoolSessionPersistence(TypedDict, total=False):
|
|
|
205
211
|
"""Should be set if app cookie or http cookie is used"""
|
|
206
212
|
|
|
207
213
|
persistence_granularity: Optional[str]
|
|
208
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
214
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
209
215
|
|
|
210
216
|
persistence_timeout: Optional[int]
|
|
211
217
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -282,7 +288,7 @@ class Listener(TypedDict, total=False):
|
|
|
282
288
|
insert_x_forwarded: bool
|
|
283
289
|
"""Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
|
|
284
290
|
|
|
285
|
-
Only used with HTTP or TERMINATED_HTTPS protocols.
|
|
291
|
+
Only used with HTTP or `TERMINATED_HTTPS` protocols.
|
|
286
292
|
"""
|
|
287
293
|
|
|
288
294
|
pools: Iterable[ListenerPool]
|
|
@@ -290,14 +296,14 @@ class Listener(TypedDict, total=False):
|
|
|
290
296
|
|
|
291
297
|
secret_id: str
|
|
292
298
|
"""
|
|
293
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
294
|
-
listener
|
|
299
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
300
|
+
PROMETHEUS listener
|
|
295
301
|
"""
|
|
296
302
|
|
|
297
303
|
sni_secret_id: List[str]
|
|
298
304
|
"""
|
|
299
305
|
List of secrets IDs containing PKCS12 format certificate/key bundles for
|
|
300
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
306
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
301
307
|
"""
|
|
302
308
|
|
|
303
309
|
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
|
|
@@ -43,11 +43,7 @@ class LoadBalancerListParams(TypedDict, total=False):
|
|
|
43
43
|
"""Filter by tag keys."""
|
|
44
44
|
|
|
45
45
|
tag_key_value: str
|
|
46
|
-
"""Filter by tag key-value pairs.
|
|
47
|
-
|
|
48
|
-
Must be a valid JSON string. curl -G --data-urlencode "tag_key_value={"key":
|
|
49
|
-
"value"}" --url "http://localhost:1111/v1/loadbalancers/1/1"
|
|
50
|
-
"""
|
|
46
|
+
"""Filter by tag key-value pairs. Must be a valid JSON string."""
|
|
51
47
|
|
|
52
48
|
with_ddos: bool
|
|
53
49
|
"""Show Advanced DDoS protection profile, if exists"""
|
|
@@ -35,7 +35,7 @@ class LoadBalancerListenerDetail(BaseModel):
|
|
|
35
35
|
insert_headers: object
|
|
36
36
|
"""Dictionary of additional header insertion into HTTP headers.
|
|
37
37
|
|
|
38
|
-
Only used with HTTP and TERMINATED_HTTPS protocols.
|
|
38
|
+
Only used with HTTP and `TERMINATED_HTTPS` protocols.
|
|
39
39
|
"""
|
|
40
40
|
|
|
41
41
|
loadbalancer_id: Optional[str] = None
|
|
@@ -61,14 +61,14 @@ class LoadBalancerListenerDetail(BaseModel):
|
|
|
61
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
|
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
|
+
from .tag_update_map_param import TagUpdateMapParam
|
|
8
9
|
from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
9
10
|
from .load_balancer_member_connectivity import LoadBalancerMemberConnectivity
|
|
10
11
|
|
|
@@ -28,6 +29,29 @@ class LoadBalancerUpdateParams(TypedDict, total=False):
|
|
|
28
29
|
members
|
|
29
30
|
"""
|
|
30
31
|
|
|
32
|
+
tags: Optional[TagUpdateMapParam]
|
|
33
|
+
"""Update key-value tags using JSON Merge Patch semantics (RFC 7386).
|
|
34
|
+
|
|
35
|
+
Provide key-value pairs to add or update tags. Set tag values to `null` to
|
|
36
|
+
remove tags. Unspecified tags remain unchanged. Read-only tags are always
|
|
37
|
+
preserved and cannot be modified. **Examples:**
|
|
38
|
+
|
|
39
|
+
- **Add/update tags:**
|
|
40
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
41
|
+
updates existing ones.
|
|
42
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
43
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
44
|
+
tags are preserved).
|
|
45
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
46
|
+
specified tags.
|
|
47
|
+
- **Mixed operations:**
|
|
48
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
49
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
50
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
51
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
52
|
+
ones in the same request.
|
|
53
|
+
"""
|
|
54
|
+
|
|
31
55
|
|
|
32
56
|
class Logging(TypedDict, total=False):
|
|
33
57
|
destination_region_id: Optional[int]
|
|
@@ -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]
|
|
@@ -38,19 +38,19 @@ class ListenerCreateParams(TypedDict, total=False):
|
|
|
38
38
|
insert_x_forwarded: bool
|
|
39
39
|
"""Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
|
|
40
40
|
|
|
41
|
-
Only used with HTTP or TERMINATED_HTTPS protocols.
|
|
41
|
+
Only used with HTTP or `TERMINATED_HTTPS` protocols.
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
secret_id: str
|
|
45
45
|
"""
|
|
46
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
47
|
-
listener
|
|
46
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
47
|
+
PROMETHEUS listener
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
50
|
sni_secret_id: List[str]
|
|
51
51
|
"""
|
|
52
52
|
List of secrets IDs containing PKCS12 format certificate/key bundles for
|
|
53
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
53
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
timeout_client_data: Optional[int]
|
|
@@ -26,14 +26,14 @@ class ListenerUpdateParams(TypedDict, total=False):
|
|
|
26
26
|
|
|
27
27
|
secret_id: Optional[str]
|
|
28
28
|
"""
|
|
29
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
30
|
-
load balancer
|
|
29
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
30
|
+
PROMETHEUS load balancer
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
33
|
sni_secret_id: Optional[List[str]]
|
|
34
34
|
"""
|
|
35
35
|
List of secret's ID containing PKCS12 format certificate/key bundfles for
|
|
36
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
36
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
timeout_client_data: Optional[int]
|
|
@@ -105,10 +105,15 @@ class Member(TypedDict, total=False):
|
|
|
105
105
|
"""Member IP port"""
|
|
106
106
|
|
|
107
107
|
admin_state_up: Optional[bool]
|
|
108
|
-
"""
|
|
108
|
+
"""Administrative state of the resource.
|
|
109
|
+
|
|
110
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
111
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
112
|
+
value is skipped and defaults to true.
|
|
113
|
+
"""
|
|
109
114
|
|
|
110
115
|
instance_id: Optional[str]
|
|
111
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
116
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
112
117
|
|
|
113
118
|
monitor_address: Optional[str]
|
|
114
119
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -119,11 +124,11 @@ class Member(TypedDict, total=False):
|
|
|
119
124
|
monitor_port: Optional[int]
|
|
120
125
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
121
126
|
|
|
122
|
-
Default is null which monitors the member protocol_port
|
|
127
|
+
Default is null which monitors the member `protocol_port`.
|
|
123
128
|
"""
|
|
124
129
|
|
|
125
130
|
subnet_id: Optional[str]
|
|
126
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
131
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
127
132
|
|
|
128
133
|
weight: Optional[int]
|
|
129
134
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -137,7 +142,7 @@ class SessionPersistence(TypedDict, total=False):
|
|
|
137
142
|
"""Should be set if app cookie or http cookie is used"""
|
|
138
143
|
|
|
139
144
|
persistence_granularity: Optional[str]
|
|
140
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
145
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
141
146
|
|
|
142
147
|
persistence_timeout: Optional[int]
|
|
143
148
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -103,10 +103,15 @@ class Member(TypedDict, total=False):
|
|
|
103
103
|
"""Member IP port"""
|
|
104
104
|
|
|
105
105
|
admin_state_up: Optional[bool]
|
|
106
|
-
"""
|
|
106
|
+
"""Administrative state of the resource.
|
|
107
|
+
|
|
108
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
109
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
110
|
+
value is skipped and defaults to true.
|
|
111
|
+
"""
|
|
107
112
|
|
|
108
113
|
instance_id: Optional[str]
|
|
109
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
114
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
110
115
|
|
|
111
116
|
monitor_address: Optional[str]
|
|
112
117
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -117,11 +122,11 @@ class Member(TypedDict, total=False):
|
|
|
117
122
|
monitor_port: Optional[int]
|
|
118
123
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
119
124
|
|
|
120
|
-
Default is null which monitors the member protocol_port
|
|
125
|
+
Default is null which monitors the member `protocol_port`.
|
|
121
126
|
"""
|
|
122
127
|
|
|
123
128
|
subnet_id: Optional[str]
|
|
124
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
129
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
125
130
|
|
|
126
131
|
weight: Optional[int]
|
|
127
132
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -135,7 +140,7 @@ class SessionPersistence(TypedDict, total=False):
|
|
|
135
140
|
"""Should be set if app cookie or http cookie is used"""
|
|
136
141
|
|
|
137
142
|
persistence_granularity: Optional[str]
|
|
138
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
143
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
139
144
|
|
|
140
145
|
persistence_timeout: Optional[int]
|
|
141
146
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -22,10 +22,15 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
22
22
|
"""Member IP port"""
|
|
23
23
|
|
|
24
24
|
admin_state_up: Optional[bool]
|
|
25
|
-
"""
|
|
25
|
+
"""Administrative state of the resource.
|
|
26
|
+
|
|
27
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
28
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
29
|
+
value is skipped and defaults to true.
|
|
30
|
+
"""
|
|
26
31
|
|
|
27
32
|
instance_id: Optional[str]
|
|
28
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
33
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
29
34
|
|
|
30
35
|
monitor_address: Optional[str]
|
|
31
36
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -36,11 +41,11 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
36
41
|
monitor_port: Optional[int]
|
|
37
42
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
38
43
|
|
|
39
|
-
Default is null which monitors the member protocol_port
|
|
44
|
+
Default is null which monitors the member `protocol_port`.
|
|
40
45
|
"""
|
|
41
46
|
|
|
42
47
|
subnet_id: Optional[str]
|
|
43
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
48
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
44
49
|
|
|
45
50
|
weight: Optional[int]
|
|
46
51
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
gcore/types/cloud/member.py
CHANGED
|
@@ -17,7 +17,12 @@ class Member(BaseModel):
|
|
|
17
17
|
"""Member IP address"""
|
|
18
18
|
|
|
19
19
|
admin_state_up: bool
|
|
20
|
-
"""
|
|
20
|
+
"""Administrative state of the resource.
|
|
21
|
+
|
|
22
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
23
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
24
|
+
value is skipped and defaults to true.
|
|
25
|
+
"""
|
|
21
26
|
|
|
22
27
|
operating_status: LoadBalancerOperatingStatus
|
|
23
28
|
"""Member operating status of the entity"""
|
|
@@ -40,8 +45,8 @@ class Member(BaseModel):
|
|
|
40
45
|
monitor_port: Optional[int] = None
|
|
41
46
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
42
47
|
|
|
43
|
-
Default is null which monitors the member protocol_port
|
|
48
|
+
Default is null which monitors the member `protocol_port`.
|
|
44
49
|
"""
|
|
45
50
|
|
|
46
51
|
subnet_id: Optional[str] = None
|
|
47
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
52
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
gcore/types/cloud/network.py
CHANGED
|
@@ -20,7 +20,7 @@ class Network(BaseModel):
|
|
|
20
20
|
"""Task that created this entity"""
|
|
21
21
|
|
|
22
22
|
default: Optional[bool] = None
|
|
23
|
-
"""True if network has is_default attribute"""
|
|
23
|
+
"""True if network has `is_default` attribute"""
|
|
24
24
|
|
|
25
25
|
external: bool
|
|
26
26
|
"""True if the network `router:external` attribute"""
|
|
@@ -33,7 +33,7 @@ class Network(BaseModel):
|
|
|
33
33
|
|
|
34
34
|
port_security_enabled: bool
|
|
35
35
|
"""
|
|
36
|
-
Indicates port_security_enabled status of all newly created in the network
|
|
36
|
+
Indicates `port_security_enabled` status of all newly created in the network
|
|
37
37
|
ports.
|
|
38
38
|
"""
|
|
39
39
|
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Dict
|
|
5
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
8
|
-
|
|
9
8
|
__all__ = ["NetworkCreateParams"]
|
|
10
9
|
|
|
11
10
|
|
|
@@ -22,7 +21,7 @@ class NetworkCreateParams(TypedDict, total=False):
|
|
|
22
21
|
create_router: bool
|
|
23
22
|
"""Defaults to True"""
|
|
24
23
|
|
|
25
|
-
tags:
|
|
24
|
+
tags: Dict[str, str]
|
|
26
25
|
"""Key-value tags to associate with the resource.
|
|
27
26
|
|
|
28
27
|
A tag is a key-value pair that can be associated with a resource, enabling
|