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
|
@@ -10,8 +10,10 @@ __all__ = ["ListenerUpdateParams", "UserList"]
|
|
|
10
10
|
|
|
11
11
|
class ListenerUpdateParams(TypedDict, total=False):
|
|
12
12
|
project_id: int
|
|
13
|
+
"""Project ID"""
|
|
13
14
|
|
|
14
15
|
region_id: int
|
|
16
|
+
"""Region ID"""
|
|
15
17
|
|
|
16
18
|
allowed_cidrs: Optional[List[str]]
|
|
17
19
|
"""Network CIDRs from which service will be accessible"""
|
|
@@ -24,14 +26,14 @@ class ListenerUpdateParams(TypedDict, total=False):
|
|
|
24
26
|
|
|
25
27
|
secret_id: Optional[str]
|
|
26
28
|
"""
|
|
27
|
-
ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or
|
|
28
|
-
load balancer
|
|
29
|
+
ID of the secret where PKCS12 file is stored for `TERMINATED_HTTPS` or
|
|
30
|
+
PROMETHEUS load balancer
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
33
|
sni_secret_id: Optional[List[str]]
|
|
32
34
|
"""
|
|
33
35
|
List of secret's ID containing PKCS12 format certificate/key bundfles for
|
|
34
|
-
TERMINATED_HTTPS or PROMETHEUS listeners
|
|
36
|
+
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
35
37
|
"""
|
|
36
38
|
|
|
37
39
|
timeout_client_data: Optional[int]
|
|
@@ -16,8 +16,10 @@ __all__ = ["PoolCreateParams", "Healthmonitor", "Member", "SessionPersistence"]
|
|
|
16
16
|
|
|
17
17
|
class PoolCreateParams(TypedDict, total=False):
|
|
18
18
|
project_id: int
|
|
19
|
+
"""Project ID"""
|
|
19
20
|
|
|
20
21
|
region_id: int
|
|
22
|
+
"""Region ID"""
|
|
21
23
|
|
|
22
24
|
lb_algorithm: Required[LbAlgorithm]
|
|
23
25
|
"""Load balancer algorithm"""
|
|
@@ -106,7 +108,7 @@ class Member(TypedDict, total=False):
|
|
|
106
108
|
"""true if enabled. Defaults to true"""
|
|
107
109
|
|
|
108
110
|
instance_id: Optional[str]
|
|
109
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
111
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
110
112
|
|
|
111
113
|
monitor_address: Optional[str]
|
|
112
114
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -117,11 +119,11 @@ class Member(TypedDict, total=False):
|
|
|
117
119
|
monitor_port: Optional[int]
|
|
118
120
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
119
121
|
|
|
120
|
-
Default is null which monitors the member protocol_port
|
|
122
|
+
Default is null which monitors the member `protocol_port`.
|
|
121
123
|
"""
|
|
122
124
|
|
|
123
125
|
subnet_id: Optional[str]
|
|
124
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
126
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
125
127
|
|
|
126
128
|
weight: Optional[int]
|
|
127
129
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -135,7 +137,7 @@ class SessionPersistence(TypedDict, total=False):
|
|
|
135
137
|
"""Should be set if app cookie or http cookie is used"""
|
|
136
138
|
|
|
137
139
|
persistence_granularity: Optional[str]
|
|
138
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
140
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
139
141
|
|
|
140
142
|
persistence_timeout: Optional[int]
|
|
141
143
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -9,17 +9,16 @@ __all__ = ["PoolListParams"]
|
|
|
9
9
|
|
|
10
10
|
class PoolListParams(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
|
details: bool
|
|
16
|
-
"""
|
|
17
|
-
If true, show member and healthmonitor details of each pool (increases request
|
|
18
|
-
time)
|
|
19
|
-
"""
|
|
18
|
+
"""Show members and Health Monitor details"""
|
|
20
19
|
|
|
21
20
|
listener_id: str
|
|
22
|
-
"""
|
|
21
|
+
"""Listener ID"""
|
|
23
22
|
|
|
24
23
|
loadbalancer_id: str
|
|
25
|
-
"""Load
|
|
24
|
+
"""Load Balancer ID"""
|
|
@@ -16,8 +16,10 @@ __all__ = ["PoolUpdateParams", "Healthmonitor", "Member", "SessionPersistence"]
|
|
|
16
16
|
|
|
17
17
|
class PoolUpdateParams(TypedDict, total=False):
|
|
18
18
|
project_id: int
|
|
19
|
+
"""Project ID"""
|
|
19
20
|
|
|
20
21
|
region_id: int
|
|
22
|
+
"""Region ID"""
|
|
21
23
|
|
|
22
24
|
ca_secret_id: Optional[str]
|
|
23
25
|
"""Secret ID of CA certificate bundle"""
|
|
@@ -104,7 +106,7 @@ class Member(TypedDict, total=False):
|
|
|
104
106
|
"""true if enabled. Defaults to true"""
|
|
105
107
|
|
|
106
108
|
instance_id: Optional[str]
|
|
107
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
109
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
108
110
|
|
|
109
111
|
monitor_address: Optional[str]
|
|
110
112
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -115,11 +117,11 @@ class Member(TypedDict, total=False):
|
|
|
115
117
|
monitor_port: Optional[int]
|
|
116
118
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
117
119
|
|
|
118
|
-
Default is null which monitors the member protocol_port
|
|
120
|
+
Default is null which monitors the member `protocol_port`.
|
|
119
121
|
"""
|
|
120
122
|
|
|
121
123
|
subnet_id: Optional[str]
|
|
122
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
124
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
123
125
|
|
|
124
126
|
weight: Optional[int]
|
|
125
127
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
|
@@ -133,7 +135,7 @@ class SessionPersistence(TypedDict, total=False):
|
|
|
133
135
|
"""Should be set if app cookie or http cookie is used"""
|
|
134
136
|
|
|
135
137
|
persistence_granularity: Optional[str]
|
|
136
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
138
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
137
139
|
|
|
138
140
|
persistence_timeout: Optional[int]
|
|
139
141
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -14,8 +14,10 @@ __all__ = ["HealthMonitorCreateParams"]
|
|
|
14
14
|
|
|
15
15
|
class HealthMonitorCreateParams(TypedDict, total=False):
|
|
16
16
|
project_id: int
|
|
17
|
+
"""Project ID"""
|
|
17
18
|
|
|
18
19
|
region_id: int
|
|
20
|
+
"""Region ID"""
|
|
19
21
|
|
|
20
22
|
delay: Required[int]
|
|
21
23
|
"""The time, in seconds, between sending probes to members"""
|
|
@@ -10,8 +10,10 @@ __all__ = ["MemberAddParams"]
|
|
|
10
10
|
|
|
11
11
|
class MemberAddParams(TypedDict, total=False):
|
|
12
12
|
project_id: int
|
|
13
|
+
"""Project ID"""
|
|
13
14
|
|
|
14
15
|
region_id: int
|
|
16
|
+
"""Region ID"""
|
|
15
17
|
|
|
16
18
|
address: Required[str]
|
|
17
19
|
"""Member IP address"""
|
|
@@ -23,7 +25,7 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
23
25
|
"""true if enabled. Defaults to true"""
|
|
24
26
|
|
|
25
27
|
instance_id: Optional[str]
|
|
26
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
28
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
27
29
|
|
|
28
30
|
monitor_address: Optional[str]
|
|
29
31
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -34,11 +36,11 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
34
36
|
monitor_port: Optional[int]
|
|
35
37
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
36
38
|
|
|
37
|
-
Default is null which monitors the member protocol_port
|
|
39
|
+
Default is null which monitors the member `protocol_port`.
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
subnet_id: Optional[str]
|
|
41
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
43
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
|
42
44
|
|
|
43
45
|
weight: Optional[int]
|
|
44
46
|
"""Member weight. Valid values: 0 to 256, defaults to 1"""
|
gcore/types/cloud/member.py
CHANGED
|
@@ -40,8 +40,8 @@ class Member(BaseModel):
|
|
|
40
40
|
monitor_port: Optional[int] = None
|
|
41
41
|
"""An alternate protocol port used for health monitoring of a backend member.
|
|
42
42
|
|
|
43
|
-
Default is null which monitors the member protocol_port
|
|
43
|
+
Default is null which monitors the member `protocol_port`.
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
46
|
subnet_id: Optional[str] = None
|
|
47
|
-
"""Either subnet_id or instance_id should be provided"""
|
|
47
|
+
"""Either `subnet_id` or `instance_id` should be provided"""
|
gcore/types/cloud/network.py
CHANGED
|
@@ -16,24 +16,39 @@ class Network(BaseModel):
|
|
|
16
16
|
created_at: datetime
|
|
17
17
|
"""Datetime when the network was created"""
|
|
18
18
|
|
|
19
|
+
creator_task_id: Optional[str] = None
|
|
20
|
+
"""Task that created this entity"""
|
|
21
|
+
|
|
22
|
+
default: Optional[bool] = None
|
|
23
|
+
"""True if network has `is_default` attribute"""
|
|
24
|
+
|
|
19
25
|
external: bool
|
|
20
26
|
"""True if the network `router:external` attribute"""
|
|
21
27
|
|
|
28
|
+
mtu: int
|
|
29
|
+
"""MTU (maximum transmission unit). Default value is 1450"""
|
|
30
|
+
|
|
22
31
|
name: str
|
|
23
32
|
"""Network name"""
|
|
24
33
|
|
|
25
34
|
port_security_enabled: bool
|
|
26
35
|
"""
|
|
27
|
-
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
|
|
28
37
|
ports.
|
|
29
38
|
"""
|
|
30
39
|
|
|
40
|
+
project_id: Optional[int] = None
|
|
41
|
+
"""Project ID"""
|
|
42
|
+
|
|
31
43
|
region: str
|
|
32
44
|
"""Region name"""
|
|
33
45
|
|
|
34
46
|
region_id: int
|
|
35
47
|
"""Region ID"""
|
|
36
48
|
|
|
49
|
+
segmentation_id: Optional[int] = None
|
|
50
|
+
"""Id of network segment"""
|
|
51
|
+
|
|
37
52
|
shared: bool
|
|
38
53
|
"""True when the network is shared with your project by external owner"""
|
|
39
54
|
|
|
@@ -50,30 +65,15 @@ class Network(BaseModel):
|
|
|
50
65
|
values.
|
|
51
66
|
"""
|
|
52
67
|
|
|
53
|
-
type: str
|
|
54
|
-
"""Network type (vlan, vxlan)"""
|
|
55
|
-
|
|
56
|
-
updated_at: datetime
|
|
57
|
-
"""Datetime when the network was last updated"""
|
|
58
|
-
|
|
59
|
-
creator_task_id: Optional[str] = None
|
|
60
|
-
"""Task that created this entity"""
|
|
61
|
-
|
|
62
|
-
default: Optional[bool] = None
|
|
63
|
-
"""True if network has is_default attribute"""
|
|
64
|
-
|
|
65
|
-
mtu: Optional[int] = None
|
|
66
|
-
"""MTU (maximum transmission unit). Default value is 1450"""
|
|
67
|
-
|
|
68
|
-
project_id: Optional[int] = None
|
|
69
|
-
"""Project ID"""
|
|
70
|
-
|
|
71
|
-
segmentation_id: Optional[int] = None
|
|
72
|
-
"""Id of network segment"""
|
|
73
|
-
|
|
74
68
|
task_id: Optional[str] = None
|
|
75
69
|
"""The UUID of the active task that currently holds a lock on the resource.
|
|
76
70
|
|
|
77
71
|
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
78
72
|
the resource is not locked.
|
|
79
73
|
"""
|
|
74
|
+
|
|
75
|
+
type: str
|
|
76
|
+
"""Network type (vlan, vxlan)"""
|
|
77
|
+
|
|
78
|
+
updated_at: datetime
|
|
79
|
+
"""Datetime when the network was last updated"""
|
|
@@ -17,27 +17,45 @@ class NetworkDetails(BaseModel):
|
|
|
17
17
|
created_at: datetime
|
|
18
18
|
"""Datetime when the network was created"""
|
|
19
19
|
|
|
20
|
+
creator_task_id: Optional[str] = None
|
|
21
|
+
"""Task that created this entity"""
|
|
22
|
+
|
|
23
|
+
default: Optional[bool] = None
|
|
24
|
+
"""True if network has `is_default` attribute"""
|
|
25
|
+
|
|
20
26
|
external: bool
|
|
21
27
|
"""True if the network `router:external` attribute"""
|
|
22
28
|
|
|
29
|
+
mtu: int
|
|
30
|
+
"""MTU (maximum transmission unit). Default value is 1450"""
|
|
31
|
+
|
|
23
32
|
name: str
|
|
24
33
|
"""Network name"""
|
|
25
34
|
|
|
26
35
|
port_security_enabled: bool
|
|
27
36
|
"""
|
|
28
|
-
Indicates port_security_enabled status of all newly created in the network
|
|
37
|
+
Indicates `port_security_enabled` status of all newly created in the network
|
|
29
38
|
ports.
|
|
30
39
|
"""
|
|
31
40
|
|
|
41
|
+
project_id: Optional[int] = None
|
|
42
|
+
"""Project ID"""
|
|
43
|
+
|
|
32
44
|
region: str
|
|
33
45
|
"""Region name"""
|
|
34
46
|
|
|
35
47
|
region_id: int
|
|
36
48
|
"""Region ID"""
|
|
37
49
|
|
|
50
|
+
segmentation_id: Optional[int] = None
|
|
51
|
+
"""Id of network segment"""
|
|
52
|
+
|
|
38
53
|
shared: bool
|
|
39
54
|
"""True when the network is shared with your project by external owner"""
|
|
40
55
|
|
|
56
|
+
subnets: List[Subnet]
|
|
57
|
+
"""List of subnets associated with the network"""
|
|
58
|
+
|
|
41
59
|
tags: List[Tag]
|
|
42
60
|
"""List of key-value tags associated with the resource.
|
|
43
61
|
|
|
@@ -48,32 +66,15 @@ class NetworkDetails(BaseModel):
|
|
|
48
66
|
values.
|
|
49
67
|
"""
|
|
50
68
|
|
|
51
|
-
type: str
|
|
52
|
-
"""Network type (vlan, vxlan)"""
|
|
53
|
-
|
|
54
|
-
updated_at: datetime
|
|
55
|
-
"""Datetime when the network was last updated"""
|
|
56
|
-
|
|
57
|
-
creator_task_id: Optional[str] = None
|
|
58
|
-
"""Task that created this entity"""
|
|
59
|
-
|
|
60
|
-
default: Optional[bool] = None
|
|
61
|
-
"""True if network has is_default attribute"""
|
|
62
|
-
|
|
63
|
-
mtu: Optional[int] = None
|
|
64
|
-
"""MTU (maximum transmission unit). Default value is 1450"""
|
|
65
|
-
|
|
66
|
-
project_id: Optional[int] = None
|
|
67
|
-
"""Project ID"""
|
|
68
|
-
|
|
69
|
-
segmentation_id: Optional[int] = None
|
|
70
|
-
"""Id of network segment"""
|
|
71
|
-
|
|
72
|
-
subnets: Optional[List[Subnet]] = None
|
|
73
|
-
|
|
74
69
|
task_id: Optional[str] = None
|
|
75
70
|
"""The UUID of the active task that currently holds a lock on the resource.
|
|
76
71
|
|
|
77
72
|
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
78
73
|
the resource is not locked.
|
|
79
74
|
"""
|
|
75
|
+
|
|
76
|
+
type: str
|
|
77
|
+
"""Network type (vlan, vxlan)"""
|
|
78
|
+
|
|
79
|
+
updated_at: datetime
|
|
80
|
+
"""Datetime when the network was last updated"""
|
|
@@ -3,34 +3,39 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import List
|
|
6
|
-
from typing_extensions import TypedDict
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["NetworkListParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class NetworkListParams(TypedDict, total=False):
|
|
12
12
|
project_id: int
|
|
13
|
+
"""Project ID"""
|
|
13
14
|
|
|
14
15
|
region_id: int
|
|
16
|
+
"""Region ID"""
|
|
15
17
|
|
|
16
18
|
limit: int
|
|
17
|
-
"""Limit the number of returned
|
|
19
|
+
"""Optional. Limit the number of returned items"""
|
|
18
20
|
|
|
19
21
|
offset: int
|
|
20
|
-
"""
|
|
22
|
+
"""Optional.
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
"""
|
|
24
|
+
Offset value is used to exclude the first set of records from the result
|
|
25
|
+
"""
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
order_by: Literal["created_at.asc", "created_at.desc", "name.asc", "name.desc"]
|
|
28
|
+
"""
|
|
29
|
+
Ordering networks list result by `name`, `created_at` fields of the network and
|
|
30
|
+
directions (`created_at.desc`).
|
|
26
31
|
"""
|
|
27
32
|
|
|
28
33
|
tag_key: List[str]
|
|
29
|
-
"""Filter by tag keys."""
|
|
34
|
+
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
30
35
|
|
|
31
36
|
tag_key_value: str
|
|
32
|
-
"""
|
|
37
|
+
"""Optional.
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
"value"}" --url "
|
|
39
|
+
Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
40
|
+
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
36
41
|
"""
|
|
@@ -30,7 +30,7 @@ class SubnetCreateParams(TypedDict, total=False):
|
|
|
30
30
|
connect_to_network_router: bool
|
|
31
31
|
"""True if the network's router should get a gateway in this subnet.
|
|
32
32
|
|
|
33
|
-
Must be explicitly 'false' when gateway_ip is null.
|
|
33
|
+
Must be explicitly 'false' when `gateway_ip` is null.
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
dns_nameservers: Optional[List[str]]
|
|
@@ -48,11 +48,11 @@ class SubnetListParams(TypedDict, total=False):
|
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
50
|
tag_key: List[str]
|
|
51
|
-
"""Optional. Filter by tag keys.
|
|
51
|
+
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
52
52
|
|
|
53
53
|
tag_key_value: str
|
|
54
54
|
"""Optional.
|
|
55
55
|
|
|
56
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "tag_key_value
|
|
56
|
+
Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
57
57
|
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
58
58
|
"""
|
|
@@ -58,12 +58,30 @@ class RegionalQuota(BaseModel):
|
|
|
58
58
|
baremetal_basic_count_usage: Optional[int] = None
|
|
59
59
|
"""Basic bare metal servers count usage"""
|
|
60
60
|
|
|
61
|
+
baremetal_gpu_a100_count_limit: Optional[int] = None
|
|
62
|
+
"""Baremetal A100 GPU card count limit"""
|
|
63
|
+
|
|
64
|
+
baremetal_gpu_a100_count_usage: Optional[int] = None
|
|
65
|
+
"""Baremetal A100 GPU card count usage"""
|
|
66
|
+
|
|
61
67
|
baremetal_gpu_count_limit: Optional[int] = None
|
|
62
68
|
"""AI GPU bare metal servers count limit"""
|
|
63
69
|
|
|
64
70
|
baremetal_gpu_count_usage: Optional[int] = None
|
|
65
71
|
"""AI GPU bare metal servers count usage"""
|
|
66
72
|
|
|
73
|
+
baremetal_gpu_h100_count_limit: Optional[int] = None
|
|
74
|
+
"""Baremetal H100 GPU card count limit"""
|
|
75
|
+
|
|
76
|
+
baremetal_gpu_h100_count_usage: Optional[int] = None
|
|
77
|
+
"""Baremetal H100 GPU card count usage"""
|
|
78
|
+
|
|
79
|
+
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
80
|
+
"""Baremetal L40S GPU card count limit"""
|
|
81
|
+
|
|
82
|
+
baremetal_gpu_l40s_count_usage: Optional[int] = None
|
|
83
|
+
"""Baremetal L40S GPU card count usage"""
|
|
84
|
+
|
|
67
85
|
baremetal_hf_count_limit: Optional[int] = None
|
|
68
86
|
"""High-frequency bare metal servers count limit"""
|
|
69
87
|
|
|
@@ -14,12 +14,30 @@ class QuotaGetByRegionResponse(BaseModel):
|
|
|
14
14
|
baremetal_basic_count_usage: Optional[int] = None
|
|
15
15
|
"""Basic bare metal servers count usage"""
|
|
16
16
|
|
|
17
|
+
baremetal_gpu_a100_count_limit: Optional[int] = None
|
|
18
|
+
"""Baremetal A100 GPU card count limit"""
|
|
19
|
+
|
|
20
|
+
baremetal_gpu_a100_count_usage: Optional[int] = None
|
|
21
|
+
"""Baremetal A100 GPU card count usage"""
|
|
22
|
+
|
|
17
23
|
baremetal_gpu_count_limit: Optional[int] = None
|
|
18
24
|
"""AI GPU bare metal servers count limit"""
|
|
19
25
|
|
|
20
26
|
baremetal_gpu_count_usage: Optional[int] = None
|
|
21
27
|
"""AI GPU bare metal servers count usage"""
|
|
22
28
|
|
|
29
|
+
baremetal_gpu_h100_count_limit: Optional[int] = None
|
|
30
|
+
"""Baremetal H100 GPU card count limit"""
|
|
31
|
+
|
|
32
|
+
baremetal_gpu_h100_count_usage: Optional[int] = None
|
|
33
|
+
"""Baremetal H100 GPU card count usage"""
|
|
34
|
+
|
|
35
|
+
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
36
|
+
"""Baremetal L40S GPU card count limit"""
|
|
37
|
+
|
|
38
|
+
baremetal_gpu_l40s_count_usage: Optional[int] = None
|
|
39
|
+
"""Baremetal L40S GPU card count usage"""
|
|
40
|
+
|
|
23
41
|
baremetal_hf_count_limit: Optional[int] = None
|
|
24
42
|
"""High-frequency bare metal servers count limit"""
|
|
25
43
|
|
|
@@ -46,9 +46,18 @@ class RequestedLimitsRegionalLimit(TypedDict, total=False):
|
|
|
46
46
|
baremetal_basic_count_limit: int
|
|
47
47
|
"""Basic bare metal servers count limit"""
|
|
48
48
|
|
|
49
|
+
baremetal_gpu_a100_count_limit: int
|
|
50
|
+
"""Baremetal A100 GPU card count limit"""
|
|
51
|
+
|
|
49
52
|
baremetal_gpu_count_limit: int
|
|
50
53
|
"""AI GPU bare metal servers count limit"""
|
|
51
54
|
|
|
55
|
+
baremetal_gpu_h100_count_limit: int
|
|
56
|
+
"""Baremetal H100 GPU card count limit"""
|
|
57
|
+
|
|
58
|
+
baremetal_gpu_l40s_count_limit: int
|
|
59
|
+
"""Baremetal L40S GPU card count limit"""
|
|
60
|
+
|
|
52
61
|
baremetal_hf_count_limit: int
|
|
53
62
|
"""High-frequency bare metal servers count limit"""
|
|
54
63
|
|
|
@@ -35,9 +35,18 @@ class RequestedLimitsRegionalLimit(BaseModel):
|
|
|
35
35
|
baremetal_basic_count_limit: Optional[int] = None
|
|
36
36
|
"""Basic bare metal servers count limit"""
|
|
37
37
|
|
|
38
|
+
baremetal_gpu_a100_count_limit: Optional[int] = None
|
|
39
|
+
"""Baremetal A100 GPU card count limit"""
|
|
40
|
+
|
|
38
41
|
baremetal_gpu_count_limit: Optional[int] = None
|
|
39
42
|
"""AI GPU bare metal servers count limit"""
|
|
40
43
|
|
|
44
|
+
baremetal_gpu_h100_count_limit: Optional[int] = None
|
|
45
|
+
"""Baremetal H100 GPU card count limit"""
|
|
46
|
+
|
|
47
|
+
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
48
|
+
"""Baremetal L40S GPU card count limit"""
|
|
49
|
+
|
|
41
50
|
baremetal_hf_count_limit: Optional[int] = None
|
|
42
51
|
"""High-frequency bare metal servers count limit"""
|
|
43
52
|
|
|
@@ -35,9 +35,18 @@ class RequestedLimitsRegionalLimit(BaseModel):
|
|
|
35
35
|
baremetal_basic_count_limit: Optional[int] = None
|
|
36
36
|
"""Basic bare metal servers count limit"""
|
|
37
37
|
|
|
38
|
+
baremetal_gpu_a100_count_limit: Optional[int] = None
|
|
39
|
+
"""Baremetal A100 GPU card count limit"""
|
|
40
|
+
|
|
38
41
|
baremetal_gpu_count_limit: Optional[int] = None
|
|
39
42
|
"""AI GPU bare metal servers count limit"""
|
|
40
43
|
|
|
44
|
+
baremetal_gpu_h100_count_limit: Optional[int] = None
|
|
45
|
+
"""Baremetal H100 GPU card count limit"""
|
|
46
|
+
|
|
47
|
+
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
48
|
+
"""Baremetal L40S GPU card count limit"""
|
|
49
|
+
|
|
41
50
|
baremetal_hf_count_limit: Optional[int] = None
|
|
42
51
|
"""High-frequency bare metal servers count limit"""
|
|
43
52
|
|
gcore/types/cloud/region.py
CHANGED
|
@@ -26,7 +26,7 @@ class Region(BaseModel):
|
|
|
26
26
|
"""AI service API endpoint ID"""
|
|
27
27
|
|
|
28
28
|
available_volume_types: Optional[List[str]] = None
|
|
29
|
-
"""List of available volume types, 'standard', 'ssd_hiiops', 'cold']."""
|
|
29
|
+
"""List of available volume types, 'standard', '`ssd_hiiops`', 'cold']."""
|
|
30
30
|
|
|
31
31
|
coordinates: Optional[Coordinates] = None
|
|
32
32
|
"""Coordinates of the region"""
|
|
@@ -67,6 +67,9 @@ class Region(BaseModel):
|
|
|
67
67
|
has_basic_vm: bool
|
|
68
68
|
"""Region has basic vm capability"""
|
|
69
69
|
|
|
70
|
+
has_dbaas: bool
|
|
71
|
+
"""Region has DBAAS service"""
|
|
72
|
+
|
|
70
73
|
has_k8s: bool
|
|
71
74
|
"""Region has managed kubernetes capability"""
|
|
72
75
|
|
|
@@ -96,6 +99,3 @@ class Region(BaseModel):
|
|
|
96
99
|
|
|
97
100
|
zone: Optional[Literal["AMERICAS", "APAC", "EMEA", "RUSSIA_AND_CIS"]] = None
|
|
98
101
|
"""Geographical zone"""
|
|
99
|
-
|
|
100
|
-
has_dbaas: Optional[bool] = None
|
|
101
|
-
"""Region has DBAAS service"""
|
|
@@ -22,11 +22,9 @@ class User(TypedDict, total=False):
|
|
|
22
22
|
"""User account operating time, days"""
|
|
23
23
|
|
|
24
24
|
name: Required[str]
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
with maximum length of 16 characters
|
|
25
|
+
"""
|
|
26
|
+
A name for the registry user. Should be in lowercase, consisting only of numbers
|
|
27
|
+
and letters, with maximum length of 16 characters
|
|
30
28
|
"""
|
|
31
29
|
|
|
32
30
|
read_only: bool
|
|
@@ -16,11 +16,9 @@ class UserCreateParams(TypedDict, total=False):
|
|
|
16
16
|
"""User account operating time, days"""
|
|
17
17
|
|
|
18
18
|
name: Required[str]
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
with maximum length of 16 characters
|
|
19
|
+
"""
|
|
20
|
+
A name for the registry user. Should be in lowercase, consisting only of numbers
|
|
21
|
+
and letters, with maximum length of 16 characters
|
|
24
22
|
"""
|
|
25
23
|
|
|
26
24
|
read_only: bool
|
|
@@ -13,11 +13,9 @@ class RegistryCreateParams(TypedDict, total=False):
|
|
|
13
13
|
region_id: int
|
|
14
14
|
|
|
15
15
|
name: Required[str]
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
with maximum length of 24 characters
|
|
16
|
+
"""
|
|
17
|
+
A name for the container registry. Should be in lowercase, consisting only of
|
|
18
|
+
numbers, letters and -, with maximum length of 24 characters
|
|
21
19
|
"""
|
|
22
20
|
|
|
23
21
|
storage_limit: int
|