gcore 0.10.0__py3-none-any.whl → 0.11.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/_base_client.py +3 -3
- gcore/_client.py +18 -0
- gcore/_compat.py +48 -48
- gcore/_models.py +41 -41
- gcore/_types.py +35 -1
- gcore/_utils/__init__.py +9 -2
- gcore/_utils/_compat.py +45 -0
- gcore/_utils/_datetime_parse.py +136 -0
- gcore/_utils/_transform.py +11 -1
- gcore/_utils/_typing.py +6 -1
- gcore/_utils/_utils.py +0 -1
- gcore/_version.py +1 -1
- gcore/resources/__init__.py +28 -0
- gcore/resources/cloud/__init__.py +14 -0
- gcore/resources/cloud/audit_logs.py +3 -3
- gcore/resources/cloud/baremetal/images.py +3 -4
- gcore/resources/cloud/baremetal/servers.py +16 -4
- gcore/resources/cloud/cloud.py +32 -0
- gcore/resources/cloud/cost_reports.py +24 -16
- gcore/resources/cloud/file_shares/access_rules.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +30 -14
- gcore/resources/cloud/floating_ips.py +196 -4
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +1 -1
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +166 -190
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +268 -12
- gcore/resources/cloud/inference/__init__.py +14 -14
- gcore/resources/cloud/inference/applications/__init__.py +47 -0
- gcore/resources/cloud/inference/applications/applications.py +134 -0
- gcore/resources/cloud/inference/applications/deployments.py +649 -0
- gcore/resources/cloud/inference/applications/templates.py +238 -0
- gcore/resources/cloud/inference/deployments/deployments.py +41 -22
- gcore/resources/cloud/inference/inference.py +32 -32
- gcore/resources/cloud/inference/registry_credentials.py +8 -9
- gcore/resources/cloud/instances/images.py +4 -4
- gcore/resources/cloud/instances/instances.py +254 -4
- gcore/resources/cloud/instances/interfaces.py +544 -0
- gcore/resources/cloud/k8s/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/clusters.py +1391 -0
- gcore/resources/cloud/k8s/clusters/nodes.py +291 -0
- gcore/resources/cloud/k8s/clusters/pools/__init__.py +33 -0
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +303 -0
- gcore/resources/cloud/k8s/clusters/pools/pools.py +870 -0
- gcore/resources/cloud/k8s/flavors.py +209 -0
- gcore/resources/cloud/k8s/k8s.py +233 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +11 -12
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +9 -10
- gcore/resources/cloud/load_balancers/listeners.py +18 -18
- gcore/resources/cloud/load_balancers/load_balancers.py +4 -4
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +18 -6
- gcore/resources/cloud/load_balancers/pools/members.py +32 -2
- gcore/resources/cloud/load_balancers/pools/pools.py +32 -8
- gcore/resources/cloud/networks/networks.py +192 -4
- gcore/resources/cloud/networks/subnets.py +140 -8
- gcore/resources/cloud/reserved_fixed_ips/vip.py +5 -7
- gcore/resources/cloud/security_groups/security_groups.py +6 -6
- gcore/resources/cloud/tasks.py +46 -46
- gcore/resources/cloud/users/role_assignments.py +5 -4
- gcore/resources/cloud/volumes.py +4 -4
- gcore/resources/dns/__init__.py +75 -0
- gcore/resources/dns/dns.py +374 -0
- gcore/resources/dns/locations.py +288 -0
- gcore/resources/dns/metrics.py +214 -0
- gcore/resources/dns/pickers/__init__.py +33 -0
- gcore/resources/dns/pickers/pickers.py +167 -0
- gcore/resources/dns/pickers/presets.py +135 -0
- gcore/resources/dns/zones/__init__.py +47 -0
- gcore/resources/{cloud/inference/models.py → dns/zones/dnssec.py} +80 -122
- gcore/resources/dns/zones/rrsets.py +1005 -0
- gcore/resources/dns/zones/zones.py +1493 -0
- gcore/resources/storage/__init__.py +75 -0
- gcore/resources/storage/buckets/__init__.py +61 -0
- gcore/resources/storage/buckets/buckets.py +470 -0
- gcore/resources/storage/buckets/cors.py +265 -0
- gcore/resources/storage/buckets/lifecycle.py +276 -0
- gcore/resources/storage/buckets/policy.py +345 -0
- gcore/resources/storage/credentials.py +221 -0
- gcore/resources/storage/locations.py +190 -0
- gcore/resources/storage/statistics.py +364 -0
- gcore/resources/storage/storage.py +1042 -0
- gcore/resources/streaming/ai_tasks.py +56 -70
- gcore/resources/streaming/playlists.py +18 -18
- gcore/resources/streaming/quality_sets.py +8 -8
- gcore/resources/streaming/statistics.py +4 -122
- gcore/resources/streaming/streams/overlays.py +6 -6
- gcore/resources/streaming/streams/streams.py +40 -64
- gcore/resources/streaming/videos/subtitles.py +32 -30
- gcore/resources/streaming/videos/videos.py +78 -72
- gcore/resources/waap/domains/advanced_rules.py +2 -2
- gcore/resources/waap/domains/api_paths.py +13 -13
- gcore/resources/waap/domains/custom_rules.py +2 -2
- gcore/resources/waap/domains/domains.py +4 -4
- gcore/resources/waap/domains/firewall_rules.py +2 -2
- gcore/resources/waap/domains/insight_silences.py +6 -6
- gcore/resources/waap/domains/insights.py +7 -7
- gcore/resources/waap/domains/statistics.py +47 -47
- gcore/types/cloud/__init__.py +2 -4
- gcore/types/cloud/audit_log_list_params.py +2 -1
- gcore/types/cloud/baremetal/image_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_create_params.py +8 -6
- gcore/types/cloud/baremetal/server_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_rebuild_params.py +2 -0
- gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +35 -31
- gcore/types/cloud/cost_report_get_aggregated_params.py +26 -25
- gcore/types/cloud/cost_report_get_detailed_params.py +26 -25
- gcore/types/cloud/ddos_profile.py +13 -7
- gcore/types/cloud/ddos_profile_field.py +21 -8
- gcore/types/cloud/ddos_profile_option_list.py +7 -6
- gcore/types/cloud/ddos_profile_status.py +2 -2
- gcore/types/cloud/ddos_profile_template.py +7 -3
- gcore/types/cloud/ddos_profile_template_field.py +12 -3
- gcore/types/cloud/file_share.py +2 -2
- gcore/types/cloud/file_share_create_params.py +12 -6
- gcore/types/cloud/floating_ip_list_params.py +3 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +101 -74
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +76 -93
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +17 -10
- gcore/types/cloud/gpu_baremetal_cluster_list_params.py +14 -3
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +4 -2
- gcore/types/cloud/gpu_baremetal_clusters/__init__.py +6 -0
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +74 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server.py → gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1.py} +10 -10
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1_list.py +16 -0
- gcore/types/cloud/{gpu_baremetal_flavor.py → gpu_baremetal_clusters/gpu_baremetal_flavor.py} +1 -1
- gcore/types/cloud/{gpu_baremetal_flavor_list.py → gpu_baremetal_clusters/gpu_baremetal_flavor_list.py} +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/server_list_params.py +75 -0
- gcore/types/cloud/inference/__init__.py +0 -5
- gcore/types/cloud/inference/applications/__init__.py +12 -0
- gcore/types/cloud/inference/applications/deployment_create_params.py +68 -0
- gcore/types/cloud/inference/applications/deployment_patch_params.py +62 -0
- gcore/types/cloud/inference/applications/inference_application_deployment.py +111 -0
- gcore/types/cloud/inference/applications/inference_application_deployment_list.py +16 -0
- gcore/types/cloud/inference/applications/inference_application_template.py +94 -0
- gcore/types/cloud/inference/applications/inference_application_template_list.py +16 -0
- gcore/types/cloud/inference/deployment_create_params.py +7 -6
- gcore/types/cloud/inference/deployment_update_params.py +7 -6
- gcore/types/cloud/instance_assign_security_group_params.py +4 -2
- gcore/types/cloud/instance_list_params.py +3 -2
- gcore/types/cloud/instance_unassign_security_group_params.py +4 -2
- gcore/types/cloud/instances/image_list_params.py +3 -2
- gcore/types/cloud/k8s/__init__.py +13 -0
- gcore/types/cloud/k8s/cluster_create_params.py +299 -0
- gcore/types/cloud/k8s/cluster_delete_params.py +16 -0
- gcore/types/cloud/k8s/cluster_update_params.py +203 -0
- gcore/types/cloud/k8s/cluster_upgrade_params.py +16 -0
- gcore/types/cloud/k8s/clusters/__init__.py +10 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +66 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +16 -0
- gcore/types/cloud/k8s/clusters/node_list_params.py +16 -0
- gcore/types/cloud/k8s/clusters/pool_create_params.py +53 -0
- gcore/types/cloud/k8s/clusters/pool_resize_params.py +18 -0
- gcore/types/cloud/k8s/clusters/pool_update_params.py +34 -0
- gcore/types/cloud/k8s/clusters/pools/__init__.py +5 -0
- gcore/types/cloud/k8s/clusters/pools/node_list_params.py +18 -0
- gcore/types/cloud/k8s/flavor_list_params.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster.py +209 -0
- gcore/types/cloud/k8s/k8s_cluster_certificate.py +13 -0
- gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster_list.py +16 -0
- gcore/types/cloud/k8s_cluster_version.py +10 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server_list.py → k8s_cluster_version_list.py} +4 -4
- gcore/types/cloud/load_balancer_create_params.py +23 -4
- gcore/types/cloud/load_balancer_list_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/listener_create_params.py +4 -3
- gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +19 -1
- gcore/types/cloud/load_balancers/pool_update_params.py +19 -1
- gcore/types/cloud/load_balancers/pools/member_add_params.py +19 -1
- gcore/types/cloud/member.py +19 -1
- gcore/types/cloud/network_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_create_params.py +3 -2
- gcore/types/cloud/networks/subnet_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_update_params.py +3 -2
- gcore/types/cloud/project.py +9 -9
- gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +3 -2
- gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +3 -2
- gcore/types/cloud/security_group_create_params.py +4 -2
- gcore/types/cloud/security_group_list_params.py +3 -2
- gcore/types/cloud/task_id_list.py +8 -1
- gcore/types/cloud/task_list_params.py +23 -23
- gcore/types/cloud/usage_report_get_params.py +26 -25
- gcore/types/cloud/users/role_assignment.py +2 -1
- gcore/types/cloud/users/role_assignment_create_params.py +4 -2
- gcore/types/cloud/users/role_assignment_update_params.py +4 -2
- gcore/types/cloud/volume_list_params.py +3 -2
- gcore/types/dns/__init__.py +31 -0
- gcore/types/dns/dns_get_account_overview_response.py +21 -0
- gcore/types/dns/dns_label_name.py +13 -0
- gcore/types/dns/dns_location_translations.py +11 -0
- gcore/types/dns/dns_lookup_params.py +15 -0
- gcore/types/dns/dns_lookup_response.py +21 -0
- gcore/types/dns/dns_name_server.py +17 -0
- gcore/types/dns/location_list_continents_response.py +10 -0
- gcore/types/dns/location_list_countries_response.py +10 -0
- gcore/types/dns/location_list_regions_response.py +10 -0
- gcore/types/dns/location_list_response.py +16 -0
- gcore/types/dns/metric_list_params.py +24 -0
- gcore/types/dns/metric_list_response.py +7 -0
- gcore/types/dns/picker_list_response.py +10 -0
- gcore/types/dns/pickers/__init__.py +5 -0
- gcore/types/dns/pickers/preset_list_response.py +10 -0
- gcore/types/dns/zone_check_delegation_status_response.py +20 -0
- gcore/types/dns/zone_create_params.py +59 -0
- gcore/types/dns/zone_create_response.py +13 -0
- gcore/types/dns/zone_export_response.py +11 -0
- gcore/types/dns/zone_get_response.py +106 -0
- gcore/types/dns/zone_get_statistics_params.py +43 -0
- gcore/types/dns/zone_get_statistics_response.py +19 -0
- gcore/types/dns/zone_import_params.py +32 -0
- gcore/types/dns/zone_import_response.py +26 -0
- gcore/types/dns/zone_list_params.py +57 -0
- gcore/types/dns/zone_list_response.py +105 -0
- gcore/types/dns/zone_replace_params.py +61 -0
- gcore/types/dns/zones/__init__.py +15 -0
- gcore/types/dns/zones/dns_failover_log.py +19 -0
- gcore/types/dns/zones/dns_output_rrset.py +123 -0
- gcore/types/dns/zones/dnssec_get_response.py +38 -0
- gcore/types/dns/zones/dnssec_update_params.py +11 -0
- gcore/types/dns/zones/dnssec_update_response.py +38 -0
- gcore/types/dns/zones/rrset_create_params.py +82 -0
- gcore/types/dns/zones/rrset_get_failover_logs_params.py +21 -0
- gcore/types/dns/zones/rrset_get_failover_logs_response.py +15 -0
- gcore/types/dns/zones/rrset_list_params.py +21 -0
- gcore/types/dns/zones/rrset_list_response.py +14 -0
- gcore/types/dns/zones/rrset_replace_params.py +82 -0
- gcore/types/security/client_profile.py +1 -1
- gcore/types/security/profile_create_params.py +2 -2
- gcore/types/security/profile_recreate_params.py +2 -2
- gcore/types/security/profile_replace_params.py +2 -2
- gcore/types/storage/__init__.py +21 -0
- gcore/types/storage/bucket.py +15 -0
- gcore/types/storage/bucket_list_params.py +15 -0
- gcore/types/storage/buckets/__init__.py +9 -0
- gcore/types/storage/buckets/bucket_cors.py +18 -0
- gcore/types/storage/buckets/bucket_policy.py +7 -0
- gcore/types/storage/buckets/cor_create_params.py +17 -0
- gcore/types/storage/buckets/lifecycle_create_params.py +18 -0
- gcore/types/storage/buckets/policy_get_response.py +7 -0
- gcore/types/storage/credential_recreate_params.py +36 -0
- gcore/types/storage/location.py +24 -0
- gcore/types/storage/location_list_params.py +13 -0
- gcore/types/storage/statistic_get_usage_aggregated_params.py +24 -0
- gcore/types/storage/statistic_get_usage_series_params.py +38 -0
- gcore/types/storage/statistic_get_usage_series_response.py +12 -0
- gcore/types/storage/storage.py +101 -0
- gcore/types/storage/storage_create_params.py +44 -0
- gcore/types/storage/storage_list_params.py +39 -0
- gcore/types/storage/storage_restore_params.py +11 -0
- gcore/types/storage/storage_update_params.py +18 -0
- gcore/types/storage/usage_series.py +201 -0
- gcore/types/storage/usage_total.py +54 -0
- gcore/types/streaming/__init__.py +0 -4
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_nsfw.py +1 -1
- gcore/types/streaming/ai_contentmoderation_softnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_sport.py +1 -1
- gcore/types/streaming/ai_task.py +1 -5
- gcore/types/streaming/ai_task_create_params.py +2 -2
- gcore/types/streaming/ai_task_get_response.py +0 -46
- gcore/types/streaming/clip.py +2 -1
- gcore/types/streaming/create_video_param.py +13 -12
- gcore/types/streaming/max_stream_series.py +5 -5
- gcore/types/streaming/playlist.py +1 -1
- gcore/types/streaming/playlist_create_params.py +1 -1
- gcore/types/streaming/playlist_update_params.py +1 -1
- gcore/types/streaming/playlist_video.py +13 -12
- gcore/types/streaming/storage_series.py +5 -5
- gcore/types/streaming/stream.py +86 -49
- gcore/types/streaming/stream_create_clip_params.py +2 -1
- gcore/types/streaming/stream_create_params.py +9 -23
- gcore/types/streaming/stream_series.py +5 -5
- gcore/types/streaming/stream_update_params.py +9 -23
- gcore/types/streaming/video.py +53 -42
- gcore/types/streaming/video_update_params.py +13 -12
- gcore/types/streaming/vod_statistics_series.py +5 -5
- gcore/types/streaming/vod_total_stream_duration_series.py +3 -3
- gcore/types/waap/domain_list_params.py +1 -1
- gcore/types/waap/domain_update_params.py +1 -1
- gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
- gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
- gcore/types/waap/domains/api_path_create_params.py +4 -3
- gcore/types/waap/domains/api_path_list_params.py +3 -1
- gcore/types/waap/domains/api_path_update_params.py +5 -4
- gcore/types/waap/domains/custom_rule_create_params.py +13 -14
- gcore/types/waap/domains/custom_rule_update_params.py +12 -13
- gcore/types/waap/domains/firewall_rule_create_params.py +3 -2
- gcore/types/waap/domains/firewall_rule_update_params.py +2 -1
- gcore/types/waap/domains/insight_list_params.py +4 -2
- gcore/types/waap/domains/insight_replace_params.py +1 -1
- gcore/types/waap/domains/insight_silence_list_params.py +5 -3
- gcore/types/waap/domains/setting_update_params.py +3 -2
- gcore/types/waap/domains/statistic_get_ddos_info_params.py +6 -9
- gcore/types/waap/domains/statistic_get_events_aggregated_params.py +9 -10
- gcore/types/waap/domains/statistic_get_requests_series_params.py +8 -9
- gcore/types/waap/domains/statistic_get_traffic_series_params.py +6 -9
- gcore/types/waap/domains/waap_advanced_rule.py +3 -2
- gcore/types/waap/domains/waap_api_path.py +4 -4
- gcore/types/waap/domains/waap_api_scan_result.py +2 -2
- gcore/types/waap/domains/waap_custom_rule.py +4 -7
- gcore/types/waap/domains/waap_firewall_rule.py +3 -2
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/domains/waap_request_details.py +5 -4
- gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
- gcore/types/waap/waap_rule_set.py +1 -1
- {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/METADATA +7 -2
- {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/RECORD +312 -192
- gcore/types/cloud/inference/inference_model.py +0 -65
- gcore/types/cloud/inference/inference_registry_credentials_create.py +0 -22
- gcore/types/cloud/inference/model_list_params.py +0 -21
- gcore/types/streaming/ai_contentmoderation_casm.py +0 -39
- gcore/types/streaming/ai_contentmoderation_weapon.py +0 -39
- gcore/types/streaming/meet_series.py +0 -23
- gcore/types/streaming/statistic_get_meet_series_params.py +0 -20
- {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/WHEEL +0 -0
- {gcore-0.10.0.dist-info → gcore-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
6
|
|
|
7
|
+
from ...._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["L7PolicyReplaceParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -47,5 +48,5 @@ class L7PolicyReplaceParams(TypedDict, total=False):
|
|
|
47
48
|
Only valid if action is `REDIRECT_TO_URL`.
|
|
48
49
|
"""
|
|
49
50
|
|
|
50
|
-
tags:
|
|
51
|
+
tags: SequenceNotStr[str]
|
|
51
52
|
"""A list of simple strings assigned to the resource."""
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from ...._types import SequenceNotStr
|
|
8
9
|
from ..lb_listener_protocol import LbListenerProtocol
|
|
9
10
|
|
|
10
11
|
__all__ = ["ListenerCreateParams", "UserList"]
|
|
@@ -29,7 +30,7 @@ class ListenerCreateParams(TypedDict, total=False):
|
|
|
29
30
|
protocol_port: Required[int]
|
|
30
31
|
"""Protocol port"""
|
|
31
32
|
|
|
32
|
-
allowed_cidrs: Optional[
|
|
33
|
+
allowed_cidrs: Optional[SequenceNotStr[str]]
|
|
33
34
|
"""Network CIDRs from which service will be accessible"""
|
|
34
35
|
|
|
35
36
|
connection_limit: int
|
|
@@ -47,7 +48,7 @@ class ListenerCreateParams(TypedDict, total=False):
|
|
|
47
48
|
PROMETHEUS listener
|
|
48
49
|
"""
|
|
49
50
|
|
|
50
|
-
sni_secret_id:
|
|
51
|
+
sni_secret_id: SequenceNotStr[str]
|
|
51
52
|
"""
|
|
52
53
|
List of secrets IDs containing PKCS12 format certificate/key bundles for
|
|
53
54
|
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from ...._types import SequenceNotStr
|
|
9
|
+
|
|
8
10
|
__all__ = ["ListenerUpdateParams", "UserList"]
|
|
9
11
|
|
|
10
12
|
|
|
@@ -15,7 +17,7 @@ class ListenerUpdateParams(TypedDict, total=False):
|
|
|
15
17
|
region_id: int
|
|
16
18
|
"""Region ID"""
|
|
17
19
|
|
|
18
|
-
allowed_cidrs: Optional[
|
|
20
|
+
allowed_cidrs: Optional[SequenceNotStr[str]]
|
|
19
21
|
"""Network CIDRs from which service will be accessible"""
|
|
20
22
|
|
|
21
23
|
connection_limit: int
|
|
@@ -30,7 +32,7 @@ class ListenerUpdateParams(TypedDict, total=False):
|
|
|
30
32
|
PROMETHEUS load balancer
|
|
31
33
|
"""
|
|
32
34
|
|
|
33
|
-
sni_secret_id: Optional[
|
|
35
|
+
sni_secret_id: Optional[SequenceNotStr[str]]
|
|
34
36
|
"""
|
|
35
37
|
List of secret's ID containing PKCS12 format certificate/key bundfles for
|
|
36
38
|
`TERMINATED_HTTPS` or PROMETHEUS listeners
|
|
@@ -147,7 +147,25 @@ class Member(TypedDict, total=False):
|
|
|
147
147
|
"""
|
|
148
148
|
|
|
149
149
|
weight: int
|
|
150
|
-
"""Member weight.
|
|
150
|
+
"""Member weight.
|
|
151
|
+
|
|
152
|
+
Valid values are 0 < `weight` <= 256, defaults to 1. Controls traffic
|
|
153
|
+
distribution based on the pool's load balancing algorithm:
|
|
154
|
+
|
|
155
|
+
- `ROUND_ROBIN`: Distributes connections to each member in turn according to
|
|
156
|
+
weights. Higher weight = more turns in the cycle. Example: weights 3 vs 1 =
|
|
157
|
+
~75% vs ~25% of requests.
|
|
158
|
+
- `LEAST_CONNECTIONS`: Sends new connections to the member with fewest active
|
|
159
|
+
connections, performing round-robin within groups of the same normalized load.
|
|
160
|
+
Higher weight = allowed to hold more simultaneous connections before being
|
|
161
|
+
considered 'more loaded'. Example: weights 2 vs 1 means 20 vs 10 active
|
|
162
|
+
connections is treated as balanced.
|
|
163
|
+
- `SOURCE_IP`: Routes clients consistently to the same member by hashing client
|
|
164
|
+
source IP; hash result is modulo total weight of running members. Higher
|
|
165
|
+
weight = more hash buckets, so more client IPs map to that member. Example:
|
|
166
|
+
weights 2 vs 1 = roughly two-thirds of distinct client IPs map to the
|
|
167
|
+
higher-weight member.
|
|
168
|
+
"""
|
|
151
169
|
|
|
152
170
|
|
|
153
171
|
class SessionPersistence(TypedDict, total=False):
|
|
@@ -145,7 +145,25 @@ class Member(TypedDict, total=False):
|
|
|
145
145
|
"""
|
|
146
146
|
|
|
147
147
|
weight: int
|
|
148
|
-
"""Member weight.
|
|
148
|
+
"""Member weight.
|
|
149
|
+
|
|
150
|
+
Valid values are 0 < `weight` <= 256, defaults to 1. Controls traffic
|
|
151
|
+
distribution based on the pool's load balancing algorithm:
|
|
152
|
+
|
|
153
|
+
- `ROUND_ROBIN`: Distributes connections to each member in turn according to
|
|
154
|
+
weights. Higher weight = more turns in the cycle. Example: weights 3 vs 1 =
|
|
155
|
+
~75% vs ~25% of requests.
|
|
156
|
+
- `LEAST_CONNECTIONS`: Sends new connections to the member with fewest active
|
|
157
|
+
connections, performing round-robin within groups of the same normalized load.
|
|
158
|
+
Higher weight = allowed to hold more simultaneous connections before being
|
|
159
|
+
considered 'more loaded'. Example: weights 2 vs 1 means 20 vs 10 active
|
|
160
|
+
connections is treated as balanced.
|
|
161
|
+
- `SOURCE_IP`: Routes clients consistently to the same member by hashing client
|
|
162
|
+
source IP; hash result is modulo total weight of running members. Higher
|
|
163
|
+
weight = more hash buckets, so more client IPs map to that member. Example:
|
|
164
|
+
weights 2 vs 1 = roughly two-thirds of distinct client IPs map to the
|
|
165
|
+
higher-weight member.
|
|
166
|
+
"""
|
|
149
167
|
|
|
150
168
|
|
|
151
169
|
class SessionPersistence(TypedDict, total=False):
|
|
@@ -59,4 +59,22 @@ class MemberAddParams(TypedDict, total=False):
|
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
weight: int
|
|
62
|
-
"""Member weight.
|
|
62
|
+
"""Member weight.
|
|
63
|
+
|
|
64
|
+
Valid values are 0 < `weight` <= 256, defaults to 1. Controls traffic
|
|
65
|
+
distribution based on the pool's load balancing algorithm:
|
|
66
|
+
|
|
67
|
+
- `ROUND_ROBIN`: Distributes connections to each member in turn according to
|
|
68
|
+
weights. Higher weight = more turns in the cycle. Example: weights 3 vs 1 =
|
|
69
|
+
~75% vs ~25% of requests.
|
|
70
|
+
- `LEAST_CONNECTIONS`: Sends new connections to the member with fewest active
|
|
71
|
+
connections, performing round-robin within groups of the same normalized load.
|
|
72
|
+
Higher weight = allowed to hold more simultaneous connections before being
|
|
73
|
+
considered 'more loaded'. Example: weights 2 vs 1 means 20 vs 10 active
|
|
74
|
+
connections is treated as balanced.
|
|
75
|
+
- `SOURCE_IP`: Routes clients consistently to the same member by hashing client
|
|
76
|
+
source IP; hash result is modulo total weight of running members. Higher
|
|
77
|
+
weight = more hash buckets, so more client IPs map to that member. Example:
|
|
78
|
+
weights 2 vs 1 = roughly two-thirds of distinct client IPs map to the
|
|
79
|
+
higher-weight member.
|
|
80
|
+
"""
|
gcore/types/cloud/member.py
CHANGED
|
@@ -45,7 +45,25 @@ class Member(BaseModel):
|
|
|
45
45
|
"""`subnet_id` in which `address` is present."""
|
|
46
46
|
|
|
47
47
|
weight: int
|
|
48
|
-
"""Member weight.
|
|
48
|
+
"""Member weight.
|
|
49
|
+
|
|
50
|
+
Valid values are 0 < `weight` <= 256, defaults to 1. Controls traffic
|
|
51
|
+
distribution based on the pool's load balancing algorithm:
|
|
52
|
+
|
|
53
|
+
- `ROUND_ROBIN`: Distributes connections to each member in turn according to
|
|
54
|
+
weights. Higher weight = more turns in the cycle. Example: weights 3 vs 1 =
|
|
55
|
+
~75% vs ~25% of requests.
|
|
56
|
+
- `LEAST_CONNECTIONS`: Sends new connections to the member with fewest active
|
|
57
|
+
connections, performing round-robin within groups of the same normalized load.
|
|
58
|
+
Higher weight = allowed to hold more simultaneous connections before being
|
|
59
|
+
considered 'more loaded'. Example: weights 2 vs 1 means 20 vs 10 active
|
|
60
|
+
connections is treated as balanced.
|
|
61
|
+
- `SOURCE_IP`: Routes clients consistently to the same member by hashing client
|
|
62
|
+
source IP; hash result is modulo total weight of running members. Higher
|
|
63
|
+
weight = more hash buckets, so more client IPs map to that member. Example:
|
|
64
|
+
weights 2 vs 1 = roughly two-thirds of distinct client IPs map to the
|
|
65
|
+
higher-weight member.
|
|
66
|
+
"""
|
|
49
67
|
|
|
50
68
|
monitor_address: Optional[str] = None
|
|
51
69
|
"""An alternate IP address used for health monitoring of a backend member.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal, TypedDict
|
|
7
6
|
|
|
7
|
+
from ..._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["NetworkListParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -33,7 +34,7 @@ class NetworkListParams(TypedDict, total=False):
|
|
|
33
34
|
directions (`created_at.desc`).
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
|
-
tag_key:
|
|
37
|
+
tag_key: SequenceNotStr[str]
|
|
37
38
|
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
38
39
|
|
|
39
40
|
tag_key_value: str
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from ...._types import SequenceNotStr
|
|
8
9
|
from ..ip_version import IPVersion
|
|
9
10
|
|
|
10
11
|
__all__ = ["SubnetCreateParams", "HostRoute"]
|
|
@@ -32,7 +33,7 @@ class SubnetCreateParams(TypedDict, total=False):
|
|
|
32
33
|
Must be explicitly 'false' when `gateway_ip` is null.
|
|
33
34
|
"""
|
|
34
35
|
|
|
35
|
-
dns_nameservers: Optional[
|
|
36
|
+
dns_nameservers: Optional[SequenceNotStr[str]]
|
|
36
37
|
"""List IP addresses of DNS servers to advertise via DHCP."""
|
|
37
38
|
|
|
38
39
|
enable_dhcp: bool
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal, TypedDict
|
|
7
6
|
|
|
7
|
+
from ...._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["SubnetListParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -47,7 +48,7 @@ class SubnetListParams(TypedDict, total=False):
|
|
|
47
48
|
directions (`name.asc`).
|
|
48
49
|
"""
|
|
49
50
|
|
|
50
|
-
tag_key:
|
|
51
|
+
tag_key: SequenceNotStr[str]
|
|
51
52
|
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
52
53
|
|
|
53
54
|
tag_key_value: str
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from ...._types import SequenceNotStr
|
|
8
9
|
from ..tag_update_map_param import TagUpdateMapParam
|
|
9
10
|
|
|
10
11
|
__all__ = ["SubnetUpdateParams", "HostRoute"]
|
|
@@ -17,7 +18,7 @@ class SubnetUpdateParams(TypedDict, total=False):
|
|
|
17
18
|
region_id: int
|
|
18
19
|
"""Region ID"""
|
|
19
20
|
|
|
20
|
-
dns_nameservers: Optional[
|
|
21
|
+
dns_nameservers: Optional[SequenceNotStr[str]]
|
|
21
22
|
"""List IP addresses of DNS servers to advertise via DHCP."""
|
|
22
23
|
|
|
23
24
|
enable_dhcp: Optional[bool]
|
gcore/types/cloud/project.py
CHANGED
|
@@ -18,6 +18,15 @@ class Project(BaseModel):
|
|
|
18
18
|
created_at: datetime
|
|
19
19
|
"""Datetime of creation, which is automatically generated."""
|
|
20
20
|
|
|
21
|
+
deleted_at: Optional[datetime] = None
|
|
22
|
+
"""
|
|
23
|
+
Datetime of deletion, which is automatically generated if the project is
|
|
24
|
+
deleted.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
description: Optional[str] = None
|
|
28
|
+
"""Description of the project."""
|
|
29
|
+
|
|
21
30
|
is_default: bool
|
|
22
31
|
"""Indicates if the project is the default one.
|
|
23
32
|
|
|
@@ -30,15 +39,6 @@ class Project(BaseModel):
|
|
|
30
39
|
state: str
|
|
31
40
|
"""The state of the project."""
|
|
32
41
|
|
|
33
|
-
deleted_at: Optional[datetime] = None
|
|
34
|
-
"""
|
|
35
|
-
Datetime of deletion, which is automatically generated if the project is
|
|
36
|
-
deleted.
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
description: Optional[str] = None
|
|
40
|
-
"""Description of the project."""
|
|
41
|
-
|
|
42
42
|
task_id: Optional[str] = None
|
|
43
43
|
"""The UUID of the active task that currently holds a lock on the resource.
|
|
44
44
|
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import TypedDict
|
|
7
6
|
|
|
7
|
+
from ...._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["VipReplaceConnectedPortsParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -13,5 +14,5 @@ class VipReplaceConnectedPortsParams(TypedDict, total=False):
|
|
|
13
14
|
|
|
14
15
|
region_id: int
|
|
15
16
|
|
|
16
|
-
port_ids:
|
|
17
|
+
port_ids: SequenceNotStr[str]
|
|
17
18
|
"""List of port IDs that will share one VIP"""
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import TypedDict
|
|
7
6
|
|
|
7
|
+
from ...._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["VipUpdateConnectedPortsParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -13,5 +14,5 @@ class VipUpdateConnectedPortsParams(TypedDict, total=False):
|
|
|
13
14
|
|
|
14
15
|
region_id: int
|
|
15
16
|
|
|
16
|
-
port_ids:
|
|
17
|
+
port_ids: SequenceNotStr[str]
|
|
17
18
|
"""List of port IDs that will share one VIP"""
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Iterable, Optional
|
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
7
7
|
|
|
8
|
+
from ..._types import SequenceNotStr
|
|
9
|
+
|
|
8
10
|
__all__ = ["SecurityGroupCreateParams", "SecurityGroup", "SecurityGroupSecurityGroupRule"]
|
|
9
11
|
|
|
10
12
|
|
|
@@ -16,7 +18,7 @@ class SecurityGroupCreateParams(TypedDict, total=False):
|
|
|
16
18
|
security_group: Required[SecurityGroup]
|
|
17
19
|
"""Security group"""
|
|
18
20
|
|
|
19
|
-
instances:
|
|
21
|
+
instances: SequenceNotStr[str]
|
|
20
22
|
"""List of instances"""
|
|
21
23
|
|
|
22
24
|
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import TypedDict
|
|
7
6
|
|
|
7
|
+
from ..._types import SequenceNotStr
|
|
8
|
+
|
|
8
9
|
__all__ = ["SecurityGroupListParams"]
|
|
9
10
|
|
|
10
11
|
|
|
@@ -19,7 +20,7 @@ class SecurityGroupListParams(TypedDict, total=False):
|
|
|
19
20
|
offset: int
|
|
20
21
|
"""Offset value is used to exclude the first set of records from the result"""
|
|
21
22
|
|
|
22
|
-
tag_key:
|
|
23
|
+
tag_key: SequenceNotStr[str]
|
|
23
24
|
"""Filter by tag keys."""
|
|
24
25
|
|
|
25
26
|
tag_key_value: str
|
|
@@ -9,4 +9,11 @@ __all__ = ["TaskIDList"]
|
|
|
9
9
|
|
|
10
10
|
class TaskIDList(BaseModel):
|
|
11
11
|
tasks: List[str]
|
|
12
|
-
"""List of task IDs
|
|
12
|
+
"""List of task IDs representing asynchronous operations.
|
|
13
|
+
|
|
14
|
+
Use these IDs to monitor operation progress:
|
|
15
|
+
|
|
16
|
+
- `GET /v1/tasks/{`task_id`}` - Check individual task status and details Poll
|
|
17
|
+
task status until completion (`FINISHED`/`ERROR`) before proceeding with
|
|
18
|
+
dependent operations.
|
|
19
|
+
"""
|
|
@@ -67,25 +67,25 @@ class TaskListParams(TypedDict, total=False):
|
|
|
67
67
|
'`create_faas_function`', '`create_faas_namespace`', '`create_fip`',
|
|
68
68
|
'`create_gpu_virtual_cluster`', '`create_image`',
|
|
69
69
|
'`create_inference_application`', '`create_inference_instance`',
|
|
70
|
-
'`
|
|
71
|
-
'`
|
|
72
|
-
'`
|
|
73
|
-
'`
|
|
74
|
-
'`
|
|
75
|
-
'`
|
|
76
|
-
'`
|
|
77
|
-
'`
|
|
78
|
-
'`
|
|
79
|
-
'`
|
|
80
|
-
'`
|
|
81
|
-
'`
|
|
82
|
-
'`
|
|
83
|
-
'`
|
|
84
|
-
'`
|
|
85
|
-
'`
|
|
86
|
-
'`
|
|
87
|
-
'`
|
|
88
|
-
'`
|
|
70
|
+
'`create_k8s_cluster_pool_v2`', '`create_k8s_cluster_v2`', '`create_l7policy`',
|
|
71
|
+
'`create_l7rule`', '`create_lblistener`', '`create_lbmember`',
|
|
72
|
+
'`create_lbpool`', '`create_lbpool_health_monitor`', '`create_loadbalancer`',
|
|
73
|
+
'`create_network`', '`create_reserved_fixed_ip`', '`create_router`',
|
|
74
|
+
'`create_secret`', '`create_servergroup`', '`create_sfs`', '`create_snapshot`',
|
|
75
|
+
'`create_subnet`', '`create_vm`', '`create_volume`',
|
|
76
|
+
'`deactivate_ddos_profile`', '`delete_ai_cluster_gpu`',
|
|
77
|
+
'`delete_caas_container`', '`delete_dbaas_postgres_cluster`',
|
|
78
|
+
'`delete_ddos_profile`', '`delete_faas_function`', '`delete_faas_namespace`',
|
|
79
|
+
'`delete_fip`', '`delete_gpu_virtual_cluster`', '`delete_gpu_virtual_server`',
|
|
80
|
+
'`delete_image`', '`delete_inference_application`',
|
|
81
|
+
'`delete_inference_instance`', '`delete_k8s_cluster_pool_v2`',
|
|
82
|
+
'`delete_k8s_cluster_v2`', '`delete_l7policy`', '`delete_l7rule`',
|
|
83
|
+
'`delete_lblistener`', '`delete_lbmember`', '`delete_lbmetadata`',
|
|
84
|
+
'`delete_lbpool`', '`delete_loadbalancer`', '`delete_network`',
|
|
85
|
+
'`delete_reserved_fixed_ip`', '`delete_router`', '`delete_secret`',
|
|
86
|
+
'`delete_servergroup`', '`delete_sfs`', '`delete_snapshot`', '`delete_subnet`',
|
|
87
|
+
'`delete_vm`', '`delete_volume`', '`detach_vm_interface`', '`detach_volume`',
|
|
88
|
+
'`download_image`', '`downscale_ai_cluster_gpu`',
|
|
89
89
|
'`downscale_gpu_virtual_cluster`', '`extend_sfs`', '`extend_volume`',
|
|
90
90
|
'`failover_loadbalancer`', '`hard_reboot_gpu_baremetal_server`',
|
|
91
91
|
'`hard_reboot_gpu_virtual_cluster`', '`hard_reboot_gpu_virtual_server`',
|
|
@@ -102,10 +102,10 @@ class TaskListParams(TypedDict, total=False):
|
|
|
102
102
|
'`stop_gpu_virtual_cluster`', '`stop_gpu_virtual_server`', '`stop_vm`',
|
|
103
103
|
'`suspend_vm`', '`sync_private_flavors`', '`update_ddos_profile`',
|
|
104
104
|
'`update_inference_application`', '`update_inference_instance`',
|
|
105
|
-
'`
|
|
106
|
-
'`
|
|
107
|
-
'`
|
|
108
|
-
'`
|
|
105
|
+
'`update_k8s_cluster_v2`', '`update_lbmetadata`',
|
|
106
|
+
'`update_port_allowed_address_pairs`', '`update_tags_gpu_virtual_cluster`',
|
|
107
|
+
'`upgrade_k8s_cluster_v2`', '`upscale_ai_cluster_gpu`',
|
|
108
|
+
'`upscale_gpu_virtual_cluster`']
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
to_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|