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
|
@@ -25,11 +25,7 @@ class FloatingIPListParams(TypedDict, total=False):
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
tag_key: List[str]
|
|
28
|
-
"""Optional. Filter by tag keys.
|
|
28
|
+
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
29
29
|
|
|
30
30
|
tag_key_value: str
|
|
31
|
-
"""Optional.
|
|
32
|
-
|
|
33
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "tag_key_value={"key":
|
|
34
|
-
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
35
|
-
"""
|
|
31
|
+
"""Optional. Filter by tag key-value pairs."""
|
|
@@ -106,7 +106,7 @@ class GPUBaremetalCluster(BaseModel):
|
|
|
106
106
|
"""String in base64 format.
|
|
107
107
|
|
|
108
108
|
Must not be passed together with 'username' or 'password'. Examples of the
|
|
109
|
-
user_data
|
|
109
|
+
`user_data`: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
112
|
username: Optional[str] = None
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union, Iterable, Optional
|
|
5
|
+
from typing import Dict, Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .interface_ip_family import InterfaceIPFamily
|
|
9
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
10
9
|
|
|
11
10
|
__all__ = [
|
|
12
11
|
"GPUBaremetalClusterCreateParams",
|
|
@@ -52,10 +51,10 @@ class GPUBaremetalClusterCreateParams(TypedDict, total=False):
|
|
|
52
51
|
ssh_key_name: str
|
|
53
52
|
"""
|
|
54
53
|
Specifies the name of the SSH keypair, created via the
|
|
55
|
-
|
|
54
|
+
[/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
|
|
56
55
|
"""
|
|
57
56
|
|
|
58
|
-
tags:
|
|
57
|
+
tags: Dict[str, str]
|
|
59
58
|
"""Key-value tags to associate with the resource.
|
|
60
59
|
|
|
61
60
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -69,7 +68,7 @@ class GPUBaremetalClusterCreateParams(TypedDict, total=False):
|
|
|
69
68
|
"""String in base64 format.
|
|
70
69
|
|
|
71
70
|
Must not be passed together with 'username' or 'password'. Examples of the
|
|
72
|
-
user_data
|
|
71
|
+
`user_data`: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
|
|
73
72
|
"""
|
|
74
73
|
|
|
75
74
|
username: str
|
|
@@ -21,7 +21,7 @@ class GPUBaremetalClusterDeleteParams(TypedDict, total=False):
|
|
|
21
21
|
floatings: str
|
|
22
22
|
"""Comma separated list of floating ids that should be deleted.
|
|
23
23
|
|
|
24
|
-
Can't be used with delete_floatings
|
|
24
|
+
Can't be used with `delete_floatings`.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
reserved_fixed_ips: str
|
|
@@ -21,6 +21,6 @@ class GPUBaremetalClusterRebuildParams(TypedDict, total=False):
|
|
|
21
21
|
|
|
22
22
|
user_data: Optional[str]
|
|
23
23
|
"""
|
|
24
|
-
String in base64 format.Examples of the user_data
|
|
24
|
+
String in base64 format.Examples of the `user_data`:
|
|
25
25
|
https://cloudinit.readthedocs.io/en/latest/topics/examples.html
|
|
26
26
|
"""
|
|
@@ -92,7 +92,7 @@ class GPUBaremetalClusterServer(BaseModel):
|
|
|
92
92
|
"""GPU server ID"""
|
|
93
93
|
|
|
94
94
|
addresses: Dict[str, List[Address]]
|
|
95
|
-
"""Map of network_name to list of addresses in that network"""
|
|
95
|
+
"""Map of `network_name` to list of addresses in that network"""
|
|
96
96
|
|
|
97
97
|
blackhole_ports: List[BlackholePort]
|
|
98
98
|
"""IP addresses of the instances that are blackholed by DDoS mitigation system"""
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
|
-
|
|
10
8
|
__all__ = ["ImageUploadParams"]
|
|
11
9
|
|
|
12
10
|
|
|
@@ -24,7 +22,7 @@ class ImageUploadParams(TypedDict, total=False):
|
|
|
24
22
|
"""Image URL"""
|
|
25
23
|
|
|
26
24
|
architecture: Optional[Literal["aarch64", "x86_64"]]
|
|
27
|
-
"""Image architecture type: aarch64, x86_64"""
|
|
25
|
+
"""Image architecture type: aarch64, `x86_64`"""
|
|
28
26
|
|
|
29
27
|
cow_format: bool
|
|
30
28
|
"""
|
|
@@ -47,7 +45,7 @@ class ImageUploadParams(TypedDict, total=False):
|
|
|
47
45
|
ssh_key: Literal["allow", "deny", "required"]
|
|
48
46
|
"""Permission to use a ssh key in instances"""
|
|
49
47
|
|
|
50
|
-
tags:
|
|
48
|
+
tags: Dict[str, str]
|
|
51
49
|
"""Key-value tags to associate with the resource.
|
|
52
50
|
|
|
53
51
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -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):
|
|
@@ -95,13 +95,13 @@ class GPUBaremetalFlavorSerializerWithPricesHardwareProperties(BaseModel):
|
|
|
95
95
|
|
|
96
96
|
class GPUBaremetalFlavorSerializerWithPricesPrice(BaseModel):
|
|
97
97
|
currency_code: Optional[str] = None
|
|
98
|
-
"""Currency code. Shown if the include_prices query parameter if set to true"""
|
|
98
|
+
"""Currency code. Shown if the `include_prices` query parameter if set to true"""
|
|
99
99
|
|
|
100
100
|
price_per_hour: Optional[float] = None
|
|
101
|
-
"""Price per hour. Shown if the include_prices query parameter if set to true"""
|
|
101
|
+
"""Price per hour. Shown if the `include_prices` query parameter if set to true"""
|
|
102
102
|
|
|
103
103
|
price_per_month: Optional[float] = None
|
|
104
|
-
"""Price per month. Shown if the include_prices query parameter if set to true"""
|
|
104
|
+
"""Price per month. Shown if the `include_prices` query parameter if set to true"""
|
|
105
105
|
|
|
106
106
|
price_status: Optional[Literal["error", "hide", "show"]] = None
|
|
107
107
|
"""Price status for the UI"""
|
|
@@ -16,7 +16,12 @@ class HealthMonitor(BaseModel):
|
|
|
16
16
|
"""Health monitor ID"""
|
|
17
17
|
|
|
18
18
|
admin_state_up: bool
|
|
19
|
-
"""
|
|
19
|
+
"""Administrative state of the resource.
|
|
20
|
+
|
|
21
|
+
When set to true, the resource is enabled and operational. When set to false,
|
|
22
|
+
the resource is disabled and will not process traffic. When null is passed, the
|
|
23
|
+
value is skipped and defaults to true.
|
|
24
|
+
"""
|
|
20
25
|
|
|
21
26
|
delay: int
|
|
22
27
|
"""The time, in seconds, between sending probes to members"""
|
gcore/types/cloud/image.py
CHANGED
|
@@ -70,7 +70,7 @@ class Image(BaseModel):
|
|
|
70
70
|
"""Image visibility. Globally visible images are public"""
|
|
71
71
|
|
|
72
72
|
architecture: Optional[Literal["aarch64", "x86_64"]] = None
|
|
73
|
-
"""An image architecture type: aarch64, x86_64"""
|
|
73
|
+
"""An image architecture type: aarch64, `x86_64`"""
|
|
74
74
|
|
|
75
75
|
creator_task_id: Optional[str] = None
|
|
76
76
|
"""Task that created this entity"""
|
|
@@ -53,7 +53,7 @@ class DeploymentCreateParams(TypedDict, total=False):
|
|
|
53
53
|
auth_enabled: bool
|
|
54
54
|
"""Set to `true` to enable API key authentication for the inference instance.
|
|
55
55
|
|
|
56
|
-
`"Authorization": "Bearer
|
|
56
|
+
`"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
|
|
57
57
|
for the requests to the instance if enabled
|
|
58
58
|
"""
|
|
59
59
|
|
|
@@ -78,7 +78,7 @@ class DeploymentCreateParams(TypedDict, total=False):
|
|
|
78
78
|
probes: Optional[Probes]
|
|
79
79
|
"""Probes configured for all containers of the inference instance.
|
|
80
80
|
|
|
81
|
-
If probes are not provided, and the image_name is from a the Model Catalog
|
|
81
|
+
If probes are not provided, and the `image_name` is from a the Model Catalog
|
|
82
82
|
registry, the default probes will be used.
|
|
83
83
|
"""
|
|
84
84
|
|
|
@@ -153,13 +153,13 @@ class ContainerScaleTriggers(TypedDict, total=False):
|
|
|
153
153
|
gpu_memory: Optional[ContainerScaleTriggersGPUMemory]
|
|
154
154
|
"""GPU memory trigger configuration.
|
|
155
155
|
|
|
156
|
-
Calculated by DCGM_FI_DEV_MEM_COPY_UTIL metric
|
|
156
|
+
Calculated by `DCGM_FI_DEV_MEM_COPY_UTIL` metric
|
|
157
157
|
"""
|
|
158
158
|
|
|
159
159
|
gpu_utilization: Optional[ContainerScaleTriggersGPUUtilization]
|
|
160
160
|
"""GPU utilization trigger configuration.
|
|
161
161
|
|
|
162
|
-
Calculated by DCGM_FI_DEV_GPU_UTIL metric
|
|
162
|
+
Calculated by `DCGM_FI_DEV_GPU_UTIL` metric
|
|
163
163
|
"""
|
|
164
164
|
|
|
165
165
|
http: Optional[ContainerScaleTriggersHTTP]
|
|
@@ -47,7 +47,7 @@ class DeploymentUpdateParams(TypedDict, total=False):
|
|
|
47
47
|
auth_enabled: bool
|
|
48
48
|
"""Set to `true` to enable API key authentication for the inference instance.
|
|
49
49
|
|
|
50
|
-
`"Authorization": "Bearer
|
|
50
|
+
`"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
|
|
51
51
|
for the requests to the instance if enabled
|
|
52
52
|
"""
|
|
53
53
|
|
|
@@ -160,13 +160,13 @@ class ContainerScaleTriggers(TypedDict, total=False):
|
|
|
160
160
|
gpu_memory: Optional[ContainerScaleTriggersGPUMemory]
|
|
161
161
|
"""GPU memory trigger configuration.
|
|
162
162
|
|
|
163
|
-
Calculated by DCGM_FI_DEV_MEM_COPY_UTIL metric
|
|
163
|
+
Calculated by `DCGM_FI_DEV_MEM_COPY_UTIL` metric
|
|
164
164
|
"""
|
|
165
165
|
|
|
166
166
|
gpu_utilization: Optional[ContainerScaleTriggersGPUUtilization]
|
|
167
167
|
"""GPU utilization trigger configuration.
|
|
168
168
|
|
|
169
|
-
Calculated by DCGM_FI_DEV_GPU_UTIL metric
|
|
169
|
+
Calculated by `DCGM_FI_DEV_GPU_UTIL` metric
|
|
170
170
|
"""
|
|
171
171
|
|
|
172
172
|
http: Optional[ContainerScaleTriggersHTTP]
|
|
@@ -276,7 +276,7 @@ class ProbesLivenessProbe(TypedDict, total=False):
|
|
|
276
276
|
"""Whether the probe is enabled or not."""
|
|
277
277
|
|
|
278
278
|
probe: ProbesLivenessProbeProbe
|
|
279
|
-
"""Probe configuration (exec, http_get or tcp_socket)"""
|
|
279
|
+
"""Probe configuration (exec, `http_get` or `tcp_socket`)"""
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
class ProbesReadinessProbeProbeExec(TypedDict, total=False):
|
|
@@ -337,7 +337,7 @@ class ProbesReadinessProbe(TypedDict, total=False):
|
|
|
337
337
|
"""Whether the probe is enabled or not."""
|
|
338
338
|
|
|
339
339
|
probe: ProbesReadinessProbeProbe
|
|
340
|
-
"""Probe configuration (exec, http_get or tcp_socket)"""
|
|
340
|
+
"""Probe configuration (exec, `http_get` or `tcp_socket`)"""
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
class ProbesStartupProbeProbeExec(TypedDict, total=False):
|
|
@@ -398,7 +398,7 @@ class ProbesStartupProbe(TypedDict, total=False):
|
|
|
398
398
|
"""Whether the probe is enabled or not."""
|
|
399
399
|
|
|
400
400
|
probe: ProbesStartupProbeProbe
|
|
401
|
-
"""Probe configuration (exec, http_get or tcp_socket)"""
|
|
401
|
+
"""Probe configuration (exec, `http_get` or `tcp_socket`)"""
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
class Probes(TypedDict, total=False):
|
|
@@ -19,7 +19,7 @@ class Inference(BaseModel):
|
|
|
19
19
|
auth_enabled: bool
|
|
20
20
|
"""`true` if instance uses API key authentication.
|
|
21
21
|
|
|
22
|
-
`"Authorization": "Bearer
|
|
22
|
+
`"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
|
|
23
23
|
for the requests to the instance if enabled.
|
|
24
24
|
"""
|
|
25
25
|
|
|
@@ -71,9 +71,7 @@ class Inference(BaseModel):
|
|
|
71
71
|
"""Project ID. If not provided, your default project ID will be used."""
|
|
72
72
|
|
|
73
73
|
status: Literal["ACTIVE", "DELETING", "DEPLOYING", "DISABLED", "PARTIALLYDEPLOYED", "PENDING"]
|
|
74
|
-
"""Inference instance status.
|
|
75
|
-
|
|
76
|
-
Value can be one of the following:
|
|
74
|
+
"""Inference instance status. Value can be one of the following:
|
|
77
75
|
|
|
78
76
|
- `DEPLOYING` - The instance is being deployed. Containers are not yet created.
|
|
79
77
|
- `PARTIALLYDEPLOYED` - All containers have been created, but some may not be
|
gcore/types/cloud/instance.py
CHANGED
|
@@ -185,7 +185,7 @@ class Instance(BaseModel):
|
|
|
185
185
|
"""Instance ID"""
|
|
186
186
|
|
|
187
187
|
addresses: Dict[str, List[Address]]
|
|
188
|
-
"""Map of network_name to list of addresses in that network"""
|
|
188
|
+
"""Map of `network_name` to list of addresses in that network"""
|
|
189
189
|
|
|
190
190
|
blackhole_ports: List[BlackholePort]
|
|
191
191
|
"""IP addresses of the instances that are blackholed by DDoS mitigation system"""
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union, Iterable, Optional
|
|
5
|
+
from typing import Dict, Union, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
8
|
from .interface_ip_family import InterfaceIPFamily
|
|
9
|
-
from .tag_update_map_param import TagUpdateMapParam
|
|
10
9
|
|
|
11
10
|
__all__ = [
|
|
12
11
|
"InstanceCreateParams",
|
|
@@ -78,8 +77,8 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
78
77
|
If you want the instance name to be automatically generated based on IP
|
|
79
78
|
addresses, you can provide a name template instead of specifying the name
|
|
80
79
|
manually. The template should include a placeholder that will be replaced during
|
|
81
|
-
provisioning. Supported placeholders are: `{ip_octets}` (last 3 octets of the
|
|
82
|
-
IP), `{two_ip_octets}`, and `{one_ip_octet}`.
|
|
80
|
+
provisioning. Supported placeholders are: `{`ip_octets`}` (last 3 octets of the
|
|
81
|
+
IP), `{`two_ip_octets`}`, and `{`one_ip_octet`}`.
|
|
83
82
|
"""
|
|
84
83
|
|
|
85
84
|
password: str
|
|
@@ -88,8 +87,8 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
88
87
|
When only 'password' is provided, it is set as the password for the default user
|
|
89
88
|
of the image. For Windows instances, 'username' cannot be specified. Use the
|
|
90
89
|
'password' field to set the password for the 'Admin' user on Windows. Use the
|
|
91
|
-
'user_data' field to provide a script to create new users on Windows. The
|
|
92
|
-
password of the Admin user cannot be updated via 'user_data'.
|
|
90
|
+
'`user_data`' field to provide a script to create new users on Windows. The
|
|
91
|
+
password of the Admin user cannot be updated via '`user_data`'.
|
|
93
92
|
"""
|
|
94
93
|
|
|
95
94
|
security_groups: Iterable[SecurityGroup]
|
|
@@ -98,9 +97,7 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
98
97
|
"""
|
|
99
98
|
|
|
100
99
|
servergroup_id: str
|
|
101
|
-
"""Placement group ID for instance placement policy.
|
|
102
|
-
|
|
103
|
-
Supported group types:
|
|
100
|
+
"""Placement group ID for instance placement policy. Supported group types:
|
|
104
101
|
|
|
105
102
|
- `anti-affinity`: Ensures instances are placed on different hosts for high
|
|
106
103
|
availability.
|
|
@@ -112,10 +109,10 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
112
109
|
ssh_key_name: Optional[str]
|
|
113
110
|
"""
|
|
114
111
|
Specifies the name of the SSH keypair, created via the
|
|
115
|
-
|
|
112
|
+
[/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
|
|
116
113
|
"""
|
|
117
114
|
|
|
118
|
-
tags:
|
|
115
|
+
tags: Dict[str, str]
|
|
119
116
|
"""Key-value tags to associate with the resource.
|
|
120
117
|
|
|
121
118
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -128,9 +125,9 @@ class InstanceCreateParams(TypedDict, total=False):
|
|
|
128
125
|
user_data: str
|
|
129
126
|
"""String in base64 format.
|
|
130
127
|
|
|
131
|
-
For Linux instances, 'user_data' is ignored when 'password' field is provided.
|
|
128
|
+
For Linux instances, '`user_data`' is ignored when 'password' field is provided.
|
|
132
129
|
For Windows instances, Admin user password is set by 'password' field and cannot
|
|
133
|
-
be updated via 'user_data'. Examples of the user_data
|
|
130
|
+
be updated via '`user_data`'. Examples of the `user_data`:
|
|
134
131
|
https://cloudinit.readthedocs.io/en/latest/topics/examples.html
|
|
135
132
|
"""
|
|
136
133
|
|
|
@@ -391,7 +388,7 @@ class VolumeCreateInstanceCreateNewVolumeSerializer(TypedDict, total=False):
|
|
|
391
388
|
If not specified, a name will be generated automatically.
|
|
392
389
|
"""
|
|
393
390
|
|
|
394
|
-
tags:
|
|
391
|
+
tags: Dict[str, str]
|
|
395
392
|
"""Key-value tags to associate with the resource.
|
|
396
393
|
|
|
397
394
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -452,7 +449,7 @@ class VolumeCreateInstanceCreateVolumeFromImageSerializer(TypedDict, total=False
|
|
|
452
449
|
- For basic VMs: the size is set automatically based on the flavor.
|
|
453
450
|
"""
|
|
454
451
|
|
|
455
|
-
tags:
|
|
452
|
+
tags: Dict[str, str]
|
|
456
453
|
"""Key-value tags to associate with the resource.
|
|
457
454
|
|
|
458
455
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -506,7 +503,7 @@ class VolumeCreateInstanceCreateVolumeFromSnapshotSerializer(TypedDict, total=Fa
|
|
|
506
503
|
If not specified, a name will be generated automatically.
|
|
507
504
|
"""
|
|
508
505
|
|
|
509
|
-
tags:
|
|
506
|
+
tags: Dict[str, str]
|
|
510
507
|
"""Key-value tags to associate with the resource.
|
|
511
508
|
|
|
512
509
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -552,7 +549,7 @@ class VolumeCreateInstanceCreateVolumeFromApptemplateSerializer(TypedDict, total
|
|
|
552
549
|
size: int
|
|
553
550
|
"""Volume size in GiB."""
|
|
554
551
|
|
|
555
|
-
tags:
|
|
552
|
+
tags: Dict[str, str]
|
|
556
553
|
"""Key-value tags to associate with the resource.
|
|
557
554
|
|
|
558
555
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -597,7 +594,7 @@ class VolumeCreateInstanceExistingVolumeSerializer(TypedDict, total=False):
|
|
|
597
594
|
delete_on_termination: bool
|
|
598
595
|
"""Set to `true` to automatically delete the volume when the instance is deleted."""
|
|
599
596
|
|
|
600
|
-
tags:
|
|
597
|
+
tags: Dict[str, str]
|
|
601
598
|
"""Key-value tags to associate with the resource.
|
|
602
599
|
|
|
603
600
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -37,10 +37,10 @@ class InstanceListParams(TypedDict, total=False):
|
|
|
37
37
|
"""Exclude instances with specified security group name"""
|
|
38
38
|
|
|
39
39
|
flavor_id: str
|
|
40
|
-
"""Filter out instances by flavor_id
|
|
40
|
+
"""Filter out instances by `flavor_id`. Flavor id must match exactly."""
|
|
41
41
|
|
|
42
42
|
flavor_prefix: str
|
|
43
|
-
"""Filter out instances by flavor_prefix
|
|
43
|
+
"""Filter out instances by `flavor_prefix`."""
|
|
44
44
|
|
|
45
45
|
include_ai: bool
|
|
46
46
|
"""Include GPU clusters' servers"""
|
|
@@ -87,13 +87,13 @@ class InstanceListParams(TypedDict, total=False):
|
|
|
87
87
|
profile_name: str
|
|
88
88
|
"""Filter result by ddos protection profile name.
|
|
89
89
|
|
|
90
|
-
Effective only with with_ddos set to true.
|
|
90
|
+
Effective only with `with_ddos` set to true.
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
protection_status: Literal["Active", "Queued", "Error"]
|
|
94
|
-
"""Filter result by DDoS protection_status
|
|
94
|
+
"""Filter result by DDoS `protection_status`.
|
|
95
95
|
|
|
96
|
-
if parameter is provided. Effective only with with_ddos set to true. (Active,
|
|
96
|
+
if parameter is provided. Effective only with `with_ddos` set to true. (Active,
|
|
97
97
|
Queued or Error)
|
|
98
98
|
"""
|
|
99
99
|
|
|
@@ -118,19 +118,15 @@ class InstanceListParams(TypedDict, total=False):
|
|
|
118
118
|
"""Filters instances by status."""
|
|
119
119
|
|
|
120
120
|
tag_key_value: str
|
|
121
|
-
"""Optional.
|
|
122
|
-
|
|
123
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "tag_key_value={"key":
|
|
124
|
-
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
125
|
-
"""
|
|
121
|
+
"""Optional. Filter by tag key-value pairs."""
|
|
126
122
|
|
|
127
123
|
tag_value: List[str]
|
|
128
|
-
"""Optional. Filter by tag values.
|
|
124
|
+
"""Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2"""
|
|
129
125
|
|
|
130
126
|
type_ddos_profile: Literal["basic", "advanced"]
|
|
131
127
|
"""Return bare metals either only with advanced or only basic DDoS protection.
|
|
132
128
|
|
|
133
|
-
Effective only with with_ddos set to true. (advanced or basic)
|
|
129
|
+
Effective only with `with_ddos` set to true. (advanced or basic)
|
|
134
130
|
"""
|
|
135
131
|
|
|
136
132
|
uuid: str
|
|
@@ -14,6 +14,4 @@ from .image_upload_params import ImageUploadParams as ImageUploadParams
|
|
|
14
14
|
from .instance_flavor_list import InstanceFlavorList as InstanceFlavorList
|
|
15
15
|
from .interface_attach_params import InterfaceAttachParams as InterfaceAttachParams
|
|
16
16
|
from .interface_detach_params import InterfaceDetachParams as InterfaceDetachParams
|
|
17
|
-
from .flavor_list_suitable_params import FlavorListSuitableParams as FlavorListSuitableParams
|
|
18
|
-
from .flavor_list_for_resize_params import FlavorListForResizeParams as FlavorListForResizeParams
|
|
19
17
|
from .image_create_from_volume_params import ImageCreateFromVolumeParams as ImageCreateFromVolumeParams
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
|
-
|
|
10
8
|
__all__ = ["ImageCreateFromVolumeParams"]
|
|
11
9
|
|
|
12
10
|
|
|
@@ -42,7 +40,7 @@ class ImageCreateFromVolumeParams(TypedDict, total=False):
|
|
|
42
40
|
ssh_key: Literal["allow", "deny", "required"]
|
|
43
41
|
"""Whether the image supports SSH key or not"""
|
|
44
42
|
|
|
45
|
-
tags:
|
|
43
|
+
tags: Dict[str, str]
|
|
46
44
|
"""Key-value tags to associate with the resource.
|
|
47
45
|
|
|
48
46
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -23,11 +23,7 @@ class ImageListParams(TypedDict, total=False):
|
|
|
23
23
|
"""Filter by tag keys."""
|
|
24
24
|
|
|
25
25
|
tag_key_value: str
|
|
26
|
-
"""Filter by tag key-value pairs.
|
|
27
|
-
|
|
28
|
-
Must be a valid JSON string. 'curl -G --data-urlencode 'tag_key_value={"key":
|
|
29
|
-
"value"}' --url 'http://localhost:1111/v1/images/1/1'"
|
|
30
|
-
"""
|
|
26
|
+
"""Filter by tag key-value pairs. Must be a valid JSON string."""
|
|
31
27
|
|
|
32
28
|
visibility: Literal["private", "public", "shared"]
|
|
33
29
|
"""Image visibility. Globally visible images are public"""
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
-
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
|
-
|
|
10
8
|
__all__ = ["ImageUploadParams"]
|
|
11
9
|
|
|
12
10
|
|
|
@@ -51,7 +49,7 @@ class ImageUploadParams(TypedDict, total=False):
|
|
|
51
49
|
ssh_key: Literal["allow", "deny", "required"]
|
|
52
50
|
"""Whether the image supports SSH key or not"""
|
|
53
51
|
|
|
54
|
-
tags:
|
|
52
|
+
tags: Dict[str, str]
|
|
55
53
|
"""Key-value tags to associate with the resource.
|
|
56
54
|
|
|
57
55
|
A tag is a key-value pair that can be associated with a resource, enabling
|
|
@@ -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"""
|