gcore 0.9.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 +26 -10
- gcore/resources/cloud/load_balancers/pools/members.py +34 -4
- 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/security/bgp_announces.py +15 -15
- 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/__init__.py +14 -0
- gcore/resources/waap/custom_page_sets.py +40 -34
- gcore/resources/waap/domains/__init__.py +14 -28
- gcore/resources/waap/domains/advanced_rules.py +7 -10
- gcore/resources/waap/domains/{api_discovery/api_discovery.py → api_discovery.py} +292 -59
- gcore/resources/waap/domains/api_path_groups.py +5 -5
- gcore/resources/waap/domains/api_paths.py +28 -30
- gcore/resources/waap/domains/custom_rules.py +7 -10
- gcore/resources/waap/domains/domains.py +124 -68
- gcore/resources/waap/domains/firewall_rules.py +5 -7
- gcore/resources/waap/domains/insight_silences.py +34 -11
- gcore/resources/waap/domains/insights.py +43 -17
- gcore/resources/waap/domains/statistics.py +977 -0
- gcore/resources/waap/insights.py +233 -0
- gcore/resources/waap/ip_info/__init__.py +33 -0
- gcore/resources/waap/{ip_info.py → ip_info/ip_info.py} +149 -235
- gcore/resources/waap/ip_info/metrics.py +203 -0
- gcore/resources/waap/waap.py +40 -8
- 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/health_monitor.py +6 -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/{waap/domains/analytics → cloud/k8s/clusters/pools}/__init__.py +1 -1
- 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 +31 -7
- 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 +27 -4
- gcore/types/cloud/load_balancers/pool_update_params.py +27 -4
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +7 -2
- gcore/types/cloud/load_balancers/pools/member_add_params.py +20 -2
- 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/region.py +0 -3
- 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/__init__.py +1 -1
- gcore/types/security/{bgp_announce_change_params.py → bgp_announce_toggle_params.py} +2 -2
- 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/__init__.py +6 -54
- gcore/types/waap/custom_page_set_create_params.py +121 -14
- gcore/types/waap/custom_page_set_preview_params.py +11 -4
- gcore/types/waap/custom_page_set_update_params.py +122 -15
- gcore/types/waap/domain_list_params.py +2 -4
- gcore/types/waap/domain_update_params.py +1 -1
- gcore/types/waap/domains/__init__.py +28 -18
- gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
- gcore/types/waap/domains/advanced_rule_list_params.py +1 -3
- gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
- gcore/types/waap/domains/{api_discovery/scan_result_list_params.py → api_discovery_list_scan_results_params.py} +2 -2
- gcore/types/waap/domains/api_path_create_params.py +4 -3
- gcore/types/waap/domains/{api_path_group_list_response.py → api_path_group_list.py} +2 -2
- 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_list_params.py +1 -3
- 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 +19 -7
- gcore/types/waap/domains/insight_replace_params.py +3 -5
- gcore/types/waap/domains/insight_silence_list_params.py +17 -6
- gcore/types/waap/domains/setting_update_params.py +3 -2
- gcore/types/waap/domains/{analytics_list_ddos_attacks_params.py → statistic_get_ddos_attacks_params.py} +2 -2
- gcore/types/waap/domains/statistic_get_ddos_info_params.py +28 -0
- gcore/types/waap/domains/statistic_get_events_aggregated_params.py +33 -0
- gcore/types/waap/domains/statistic_get_requests_series_params.py +74 -0
- gcore/types/waap/domains/statistic_get_traffic_series_params.py +22 -0
- gcore/types/waap/domains/statistic_get_traffic_series_response.py +10 -0
- gcore/types/waap/{waap_advanced_rule.py → domains/waap_advanced_rule.py} +4 -3
- gcore/types/waap/domains/{api_discovery_get_settings_response.py → waap_api_discovery_settings.py} +2 -2
- gcore/types/waap/domains/{api_path_get_response.py → waap_api_path.py} +6 -6
- gcore/types/waap/domains/{api_discovery/scan_result_get_response.py → waap_api_scan_result.py} +5 -5
- gcore/types/waap/{waap_blocked_statistics.py → domains/waap_blocked_statistics.py} +1 -1
- gcore/types/waap/{waap_count_statistics.py → domains/waap_count_statistics.py} +1 -1
- gcore/types/waap/{waap_custom_rule.py → domains/waap_custom_rule.py} +5 -8
- gcore/types/waap/{waap_ddos_attack.py → domains/waap_ddos_attack.py} +1 -1
- gcore/types/waap/{waap_ddos_info.py → domains/waap_ddos_info.py} +1 -1
- gcore/types/waap/{waap_event_statistics.py → domains/waap_event_statistics.py} +1 -1
- gcore/types/waap/{waap_firewall_rule.py → domains/waap_firewall_rule.py} +4 -3
- gcore/types/waap/{waap_insight.py → domains/waap_insight.py} +4 -4
- gcore/types/waap/{waap_insight_silence.py → domains/waap_insight_silence.py} +1 -1
- gcore/types/waap/domains/waap_request_details.py +186 -0
- gcore/types/waap/{waap_request_summary.py → domains/waap_request_summary.py} +1 -1
- gcore/types/waap/domains/{api_discovery_scan_openapi_response.py → waap_task_id.py} +2 -2
- gcore/types/waap/{waap_traffic_metrics.py → domains/waap_traffic_metrics.py} +1 -1
- gcore/types/waap/insight_list_types_params.py +28 -0
- gcore/types/waap/ip_info/__init__.py +6 -0
- gcore/types/waap/{ip_info_get_counts_params.py → ip_info/metric_list_params.py} +2 -2
- gcore/types/waap/{waap_ip_info_counts.py → ip_info/waap_ip_info_counts.py} +1 -1
- gcore/types/waap/{ip_info_get_params.py → ip_info_get_ip_info_params.py} +2 -2
- gcore/types/waap/{waap_ip_info.py → ip_info_get_ip_info_response.py} +2 -2
- gcore/types/waap/ip_info_get_top_urls_response.py +12 -3
- gcore/types/waap/{ip_info_get_top_sessions_params.py → ip_info_get_top_user_sessions_params.py} +2 -2
- gcore/types/waap/{ip_info_get_top_sessions_response.py → ip_info_get_top_user_sessions_response.py} +2 -2
- gcore/types/waap/waap_custom_page_set.py +113 -13
- gcore/types/waap/waap_detailed_domain.py +2 -2
- gcore/types/waap/waap_insight_type.py +33 -0
- gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
- gcore/types/waap/waap_rule_set.py +26 -3
- gcore/types/waap/waap_summary_domain.py +2 -2
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/METADATA +7 -2
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/RECORD +362 -281
- gcore/resources/waap/domains/analytics/__init__.py +0 -33
- gcore/resources/waap/domains/analytics/analytics.py +0 -676
- gcore/resources/waap/domains/analytics/requests.py +0 -378
- gcore/resources/waap/domains/api_discovery/__init__.py +0 -33
- gcore/resources/waap/domains/api_discovery/scan_results.py +0 -352
- gcore/resources/waap/domains/policies.py +0 -173
- 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/types/waap/domains/analytics/request_list_params.py +0 -53
- gcore/types/waap/domains/analytics_get_event_statistics_params.py +0 -34
- gcore/types/waap/domains/analytics_list_ddos_info_params.py +0 -31
- gcore/types/waap/domains/analytics_list_event_traffic_params.py +0 -26
- gcore/types/waap/domains/analytics_list_event_traffic_response.py +0 -10
- gcore/types/waap/domains/api_discovery/__init__.py +0 -7
- gcore/types/waap/domains/api_discovery/scan_result_list_response.py +0 -29
- gcore/types/waap/domains/api_discovery_update_settings_response.py +0 -36
- gcore/types/waap/domains/api_discovery_upload_openapi_response.py +0 -10
- gcore/types/waap/domains/api_path_create_response.py +0 -50
- gcore/types/waap/domains/api_path_list_response.py +0 -50
- gcore/types/waap/waap_block_csrf_page_data.py +0 -28
- gcore/types/waap/waap_block_csrf_page_data_param.py +0 -28
- gcore/types/waap/waap_block_page_data.py +0 -28
- gcore/types/waap/waap_block_page_data_param.py +0 -28
- gcore/types/waap/waap_captcha_page_data.py +0 -31
- gcore/types/waap/waap_captcha_page_data_param.py +0 -31
- gcore/types/waap/waap_common_tag.py +0 -16
- gcore/types/waap/waap_cookie_disabled_page_data.py +0 -18
- gcore/types/waap/waap_cookie_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_customer_rule_state.py +0 -7
- gcore/types/waap/waap_domain_policy.py +0 -29
- gcore/types/waap/waap_domain_status.py +0 -7
- gcore/types/waap/waap_handshake_page_data.py +0 -25
- gcore/types/waap/waap_handshake_page_data_param.py +0 -25
- gcore/types/waap/waap_insight_silence_sort_by.py +0 -9
- gcore/types/waap/waap_insight_sort_by.py +0 -20
- gcore/types/waap/waap_insight_status.py +0 -7
- gcore/types/waap/waap_javascript_disabled_page_data.py +0 -18
- gcore/types/waap/waap_javascript_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_network_details.py +0 -17
- gcore/types/waap/waap_page_type.py +0 -9
- gcore/types/waap/waap_paginated_custom_page_set.py +0 -22
- gcore/types/waap/waap_paginated_ddos_attack.py +0 -22
- gcore/types/waap/waap_paginated_ddos_info.py +0 -22
- gcore/types/waap/waap_paginated_request_summary.py +0 -22
- gcore/types/waap/waap_pattern_matched_tag.py +0 -37
- gcore/types/waap/waap_policy_action.py +0 -7
- gcore/types/waap/waap_request_details.py +0 -92
- gcore/types/waap/waap_request_organization.py +0 -13
- gcore/types/waap/waap_resolution.py +0 -7
- gcore/types/waap/waap_rule_action_type.py +0 -7
- gcore/types/waap/waap_top_url.py +0 -13
- gcore/types/waap/waap_traffic_type.py +0 -28
- gcore/types/waap/waap_user_agent_details.py +0 -40
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/WHEEL +0 -0
- {gcore-0.9.0.dist-info → gcore-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
8
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
|
9
|
+
from ...._compat import cached_property
|
|
10
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
11
|
+
from ...._response import (
|
|
12
|
+
to_raw_response_wrapper,
|
|
13
|
+
to_streamed_response_wrapper,
|
|
14
|
+
async_to_raw_response_wrapper,
|
|
15
|
+
async_to_streamed_response_wrapper,
|
|
16
|
+
)
|
|
17
|
+
from ...._base_client import make_request_options
|
|
18
|
+
from ....types.cloud.k8s import flavor_list_params
|
|
19
|
+
from ....types.cloud.baremetal_flavor_list import BaremetalFlavorList
|
|
20
|
+
|
|
21
|
+
__all__ = ["FlavorsResource", "AsyncFlavorsResource"]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class FlavorsResource(SyncAPIResource):
|
|
25
|
+
@cached_property
|
|
26
|
+
def with_raw_response(self) -> FlavorsResourceWithRawResponse:
|
|
27
|
+
"""
|
|
28
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
29
|
+
the raw response object instead of the parsed content.
|
|
30
|
+
|
|
31
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
32
|
+
"""
|
|
33
|
+
return FlavorsResourceWithRawResponse(self)
|
|
34
|
+
|
|
35
|
+
@cached_property
|
|
36
|
+
def with_streaming_response(self) -> FlavorsResourceWithStreamingResponse:
|
|
37
|
+
"""
|
|
38
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
39
|
+
|
|
40
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
41
|
+
"""
|
|
42
|
+
return FlavorsResourceWithStreamingResponse(self)
|
|
43
|
+
|
|
44
|
+
def list(
|
|
45
|
+
self,
|
|
46
|
+
*,
|
|
47
|
+
project_id: int | None = None,
|
|
48
|
+
region_id: int | None = None,
|
|
49
|
+
exclude_gpu: bool | NotGiven = NOT_GIVEN,
|
|
50
|
+
include_prices: bool | NotGiven = NOT_GIVEN,
|
|
51
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
|
+
extra_headers: Headers | None = None,
|
|
54
|
+
extra_query: Query | None = None,
|
|
55
|
+
extra_body: Body | None = None,
|
|
56
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
57
|
+
) -> BaremetalFlavorList:
|
|
58
|
+
"""Retrieve a list of flavors for k8s pool.
|
|
59
|
+
|
|
60
|
+
When the `include_prices` query
|
|
61
|
+
parameter is specified, the list shows prices. A client in trial mode gets all
|
|
62
|
+
price values as 0. If you get Pricing Error contact the support
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
exclude_gpu: Set to false to include GPU flavors. Default is True.
|
|
66
|
+
|
|
67
|
+
include_prices: Set to true to include flavor prices. Default is False.
|
|
68
|
+
|
|
69
|
+
extra_headers: Send extra headers
|
|
70
|
+
|
|
71
|
+
extra_query: Add additional query parameters to the request
|
|
72
|
+
|
|
73
|
+
extra_body: Add additional JSON properties to the request
|
|
74
|
+
|
|
75
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
76
|
+
"""
|
|
77
|
+
if project_id is None:
|
|
78
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
79
|
+
if region_id is None:
|
|
80
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
81
|
+
return self._get(
|
|
82
|
+
f"/cloud/v1/k8s/{project_id}/{region_id}/flavors",
|
|
83
|
+
options=make_request_options(
|
|
84
|
+
extra_headers=extra_headers,
|
|
85
|
+
extra_query=extra_query,
|
|
86
|
+
extra_body=extra_body,
|
|
87
|
+
timeout=timeout,
|
|
88
|
+
query=maybe_transform(
|
|
89
|
+
{
|
|
90
|
+
"exclude_gpu": exclude_gpu,
|
|
91
|
+
"include_prices": include_prices,
|
|
92
|
+
},
|
|
93
|
+
flavor_list_params.FlavorListParams,
|
|
94
|
+
),
|
|
95
|
+
),
|
|
96
|
+
cast_to=BaremetalFlavorList,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class AsyncFlavorsResource(AsyncAPIResource):
|
|
101
|
+
@cached_property
|
|
102
|
+
def with_raw_response(self) -> AsyncFlavorsResourceWithRawResponse:
|
|
103
|
+
"""
|
|
104
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
105
|
+
the raw response object instead of the parsed content.
|
|
106
|
+
|
|
107
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
108
|
+
"""
|
|
109
|
+
return AsyncFlavorsResourceWithRawResponse(self)
|
|
110
|
+
|
|
111
|
+
@cached_property
|
|
112
|
+
def with_streaming_response(self) -> AsyncFlavorsResourceWithStreamingResponse:
|
|
113
|
+
"""
|
|
114
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
115
|
+
|
|
116
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
117
|
+
"""
|
|
118
|
+
return AsyncFlavorsResourceWithStreamingResponse(self)
|
|
119
|
+
|
|
120
|
+
async def list(
|
|
121
|
+
self,
|
|
122
|
+
*,
|
|
123
|
+
project_id: int | None = None,
|
|
124
|
+
region_id: int | None = None,
|
|
125
|
+
exclude_gpu: bool | NotGiven = NOT_GIVEN,
|
|
126
|
+
include_prices: bool | NotGiven = NOT_GIVEN,
|
|
127
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
128
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
129
|
+
extra_headers: Headers | None = None,
|
|
130
|
+
extra_query: Query | None = None,
|
|
131
|
+
extra_body: Body | None = None,
|
|
132
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
133
|
+
) -> BaremetalFlavorList:
|
|
134
|
+
"""Retrieve a list of flavors for k8s pool.
|
|
135
|
+
|
|
136
|
+
When the `include_prices` query
|
|
137
|
+
parameter is specified, the list shows prices. A client in trial mode gets all
|
|
138
|
+
price values as 0. If you get Pricing Error contact the support
|
|
139
|
+
|
|
140
|
+
Args:
|
|
141
|
+
exclude_gpu: Set to false to include GPU flavors. Default is True.
|
|
142
|
+
|
|
143
|
+
include_prices: Set to true to include flavor prices. Default is False.
|
|
144
|
+
|
|
145
|
+
extra_headers: Send extra headers
|
|
146
|
+
|
|
147
|
+
extra_query: Add additional query parameters to the request
|
|
148
|
+
|
|
149
|
+
extra_body: Add additional JSON properties to the request
|
|
150
|
+
|
|
151
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
152
|
+
"""
|
|
153
|
+
if project_id is None:
|
|
154
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
155
|
+
if region_id is None:
|
|
156
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
157
|
+
return await self._get(
|
|
158
|
+
f"/cloud/v1/k8s/{project_id}/{region_id}/flavors",
|
|
159
|
+
options=make_request_options(
|
|
160
|
+
extra_headers=extra_headers,
|
|
161
|
+
extra_query=extra_query,
|
|
162
|
+
extra_body=extra_body,
|
|
163
|
+
timeout=timeout,
|
|
164
|
+
query=await async_maybe_transform(
|
|
165
|
+
{
|
|
166
|
+
"exclude_gpu": exclude_gpu,
|
|
167
|
+
"include_prices": include_prices,
|
|
168
|
+
},
|
|
169
|
+
flavor_list_params.FlavorListParams,
|
|
170
|
+
),
|
|
171
|
+
),
|
|
172
|
+
cast_to=BaremetalFlavorList,
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
class FlavorsResourceWithRawResponse:
|
|
177
|
+
def __init__(self, flavors: FlavorsResource) -> None:
|
|
178
|
+
self._flavors = flavors
|
|
179
|
+
|
|
180
|
+
self.list = to_raw_response_wrapper(
|
|
181
|
+
flavors.list,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class AsyncFlavorsResourceWithRawResponse:
|
|
186
|
+
def __init__(self, flavors: AsyncFlavorsResource) -> None:
|
|
187
|
+
self._flavors = flavors
|
|
188
|
+
|
|
189
|
+
self.list = async_to_raw_response_wrapper(
|
|
190
|
+
flavors.list,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
class FlavorsResourceWithStreamingResponse:
|
|
195
|
+
def __init__(self, flavors: FlavorsResource) -> None:
|
|
196
|
+
self._flavors = flavors
|
|
197
|
+
|
|
198
|
+
self.list = to_streamed_response_wrapper(
|
|
199
|
+
flavors.list,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class AsyncFlavorsResourceWithStreamingResponse:
|
|
204
|
+
def __init__(self, flavors: AsyncFlavorsResource) -> None:
|
|
205
|
+
self._flavors = flavors
|
|
206
|
+
|
|
207
|
+
self.list = async_to_streamed_response_wrapper(
|
|
208
|
+
flavors.list,
|
|
209
|
+
)
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from .flavors import (
|
|
8
|
+
FlavorsResource,
|
|
9
|
+
AsyncFlavorsResource,
|
|
10
|
+
FlavorsResourceWithRawResponse,
|
|
11
|
+
AsyncFlavorsResourceWithRawResponse,
|
|
12
|
+
FlavorsResourceWithStreamingResponse,
|
|
13
|
+
AsyncFlavorsResourceWithStreamingResponse,
|
|
14
|
+
)
|
|
15
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
|
+
from ...._compat import cached_property
|
|
17
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
18
|
+
from ...._response import (
|
|
19
|
+
to_raw_response_wrapper,
|
|
20
|
+
to_streamed_response_wrapper,
|
|
21
|
+
async_to_raw_response_wrapper,
|
|
22
|
+
async_to_streamed_response_wrapper,
|
|
23
|
+
)
|
|
24
|
+
from ...._base_client import make_request_options
|
|
25
|
+
from .clusters.clusters import (
|
|
26
|
+
ClustersResource,
|
|
27
|
+
AsyncClustersResource,
|
|
28
|
+
ClustersResourceWithRawResponse,
|
|
29
|
+
AsyncClustersResourceWithRawResponse,
|
|
30
|
+
ClustersResourceWithStreamingResponse,
|
|
31
|
+
AsyncClustersResourceWithStreamingResponse,
|
|
32
|
+
)
|
|
33
|
+
from ....types.cloud.k8s_cluster_version_list import K8sClusterVersionList
|
|
34
|
+
|
|
35
|
+
__all__ = ["K8sResource", "AsyncK8sResource"]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class K8sResource(SyncAPIResource):
|
|
39
|
+
@cached_property
|
|
40
|
+
def flavors(self) -> FlavorsResource:
|
|
41
|
+
return FlavorsResource(self._client)
|
|
42
|
+
|
|
43
|
+
@cached_property
|
|
44
|
+
def clusters(self) -> ClustersResource:
|
|
45
|
+
return ClustersResource(self._client)
|
|
46
|
+
|
|
47
|
+
@cached_property
|
|
48
|
+
def with_raw_response(self) -> K8sResourceWithRawResponse:
|
|
49
|
+
"""
|
|
50
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
51
|
+
the raw response object instead of the parsed content.
|
|
52
|
+
|
|
53
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
54
|
+
"""
|
|
55
|
+
return K8sResourceWithRawResponse(self)
|
|
56
|
+
|
|
57
|
+
@cached_property
|
|
58
|
+
def with_streaming_response(self) -> K8sResourceWithStreamingResponse:
|
|
59
|
+
"""
|
|
60
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
61
|
+
|
|
62
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
63
|
+
"""
|
|
64
|
+
return K8sResourceWithStreamingResponse(self)
|
|
65
|
+
|
|
66
|
+
def list_versions(
|
|
67
|
+
self,
|
|
68
|
+
*,
|
|
69
|
+
project_id: int | None = None,
|
|
70
|
+
region_id: int | None = None,
|
|
71
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
72
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
73
|
+
extra_headers: Headers | None = None,
|
|
74
|
+
extra_query: Query | None = None,
|
|
75
|
+
extra_body: Body | None = None,
|
|
76
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
77
|
+
) -> K8sClusterVersionList:
|
|
78
|
+
"""
|
|
79
|
+
List available k8s cluster versions for creation
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
extra_headers: Send extra headers
|
|
83
|
+
|
|
84
|
+
extra_query: Add additional query parameters to the request
|
|
85
|
+
|
|
86
|
+
extra_body: Add additional JSON properties to the request
|
|
87
|
+
|
|
88
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
89
|
+
"""
|
|
90
|
+
if project_id is None:
|
|
91
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
92
|
+
if region_id is None:
|
|
93
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
94
|
+
return self._get(
|
|
95
|
+
f"/cloud/v2/k8s/{project_id}/{region_id}/create_versions",
|
|
96
|
+
options=make_request_options(
|
|
97
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
98
|
+
),
|
|
99
|
+
cast_to=K8sClusterVersionList,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class AsyncK8sResource(AsyncAPIResource):
|
|
104
|
+
@cached_property
|
|
105
|
+
def flavors(self) -> AsyncFlavorsResource:
|
|
106
|
+
return AsyncFlavorsResource(self._client)
|
|
107
|
+
|
|
108
|
+
@cached_property
|
|
109
|
+
def clusters(self) -> AsyncClustersResource:
|
|
110
|
+
return AsyncClustersResource(self._client)
|
|
111
|
+
|
|
112
|
+
@cached_property
|
|
113
|
+
def with_raw_response(self) -> AsyncK8sResourceWithRawResponse:
|
|
114
|
+
"""
|
|
115
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
116
|
+
the raw response object instead of the parsed content.
|
|
117
|
+
|
|
118
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
119
|
+
"""
|
|
120
|
+
return AsyncK8sResourceWithRawResponse(self)
|
|
121
|
+
|
|
122
|
+
@cached_property
|
|
123
|
+
def with_streaming_response(self) -> AsyncK8sResourceWithStreamingResponse:
|
|
124
|
+
"""
|
|
125
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
126
|
+
|
|
127
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
128
|
+
"""
|
|
129
|
+
return AsyncK8sResourceWithStreamingResponse(self)
|
|
130
|
+
|
|
131
|
+
async def list_versions(
|
|
132
|
+
self,
|
|
133
|
+
*,
|
|
134
|
+
project_id: int | None = None,
|
|
135
|
+
region_id: int | None = None,
|
|
136
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
137
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
138
|
+
extra_headers: Headers | None = None,
|
|
139
|
+
extra_query: Query | None = None,
|
|
140
|
+
extra_body: Body | None = None,
|
|
141
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
142
|
+
) -> K8sClusterVersionList:
|
|
143
|
+
"""
|
|
144
|
+
List available k8s cluster versions for creation
|
|
145
|
+
|
|
146
|
+
Args:
|
|
147
|
+
extra_headers: Send extra headers
|
|
148
|
+
|
|
149
|
+
extra_query: Add additional query parameters to the request
|
|
150
|
+
|
|
151
|
+
extra_body: Add additional JSON properties to the request
|
|
152
|
+
|
|
153
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
154
|
+
"""
|
|
155
|
+
if project_id is None:
|
|
156
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
157
|
+
if region_id is None:
|
|
158
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
159
|
+
return await self._get(
|
|
160
|
+
f"/cloud/v2/k8s/{project_id}/{region_id}/create_versions",
|
|
161
|
+
options=make_request_options(
|
|
162
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
163
|
+
),
|
|
164
|
+
cast_to=K8sClusterVersionList,
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class K8sResourceWithRawResponse:
|
|
169
|
+
def __init__(self, k8s: K8sResource) -> None:
|
|
170
|
+
self._k8s = k8s
|
|
171
|
+
|
|
172
|
+
self.list_versions = to_raw_response_wrapper(
|
|
173
|
+
k8s.list_versions,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
@cached_property
|
|
177
|
+
def flavors(self) -> FlavorsResourceWithRawResponse:
|
|
178
|
+
return FlavorsResourceWithRawResponse(self._k8s.flavors)
|
|
179
|
+
|
|
180
|
+
@cached_property
|
|
181
|
+
def clusters(self) -> ClustersResourceWithRawResponse:
|
|
182
|
+
return ClustersResourceWithRawResponse(self._k8s.clusters)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class AsyncK8sResourceWithRawResponse:
|
|
186
|
+
def __init__(self, k8s: AsyncK8sResource) -> None:
|
|
187
|
+
self._k8s = k8s
|
|
188
|
+
|
|
189
|
+
self.list_versions = async_to_raw_response_wrapper(
|
|
190
|
+
k8s.list_versions,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
@cached_property
|
|
194
|
+
def flavors(self) -> AsyncFlavorsResourceWithRawResponse:
|
|
195
|
+
return AsyncFlavorsResourceWithRawResponse(self._k8s.flavors)
|
|
196
|
+
|
|
197
|
+
@cached_property
|
|
198
|
+
def clusters(self) -> AsyncClustersResourceWithRawResponse:
|
|
199
|
+
return AsyncClustersResourceWithRawResponse(self._k8s.clusters)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
class K8sResourceWithStreamingResponse:
|
|
203
|
+
def __init__(self, k8s: K8sResource) -> None:
|
|
204
|
+
self._k8s = k8s
|
|
205
|
+
|
|
206
|
+
self.list_versions = to_streamed_response_wrapper(
|
|
207
|
+
k8s.list_versions,
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
@cached_property
|
|
211
|
+
def flavors(self) -> FlavorsResourceWithStreamingResponse:
|
|
212
|
+
return FlavorsResourceWithStreamingResponse(self._k8s.flavors)
|
|
213
|
+
|
|
214
|
+
@cached_property
|
|
215
|
+
def clusters(self) -> ClustersResourceWithStreamingResponse:
|
|
216
|
+
return ClustersResourceWithStreamingResponse(self._k8s.clusters)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
class AsyncK8sResourceWithStreamingResponse:
|
|
220
|
+
def __init__(self, k8s: AsyncK8sResource) -> None:
|
|
221
|
+
self._k8s = k8s
|
|
222
|
+
|
|
223
|
+
self.list_versions = async_to_streamed_response_wrapper(
|
|
224
|
+
k8s.list_versions,
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
@cached_property
|
|
228
|
+
def flavors(self) -> AsyncFlavorsResourceWithStreamingResponse:
|
|
229
|
+
return AsyncFlavorsResourceWithStreamingResponse(self._k8s.flavors)
|
|
230
|
+
|
|
231
|
+
@cached_property
|
|
232
|
+
def clusters(self) -> AsyncClustersResourceWithStreamingResponse:
|
|
233
|
+
return AsyncClustersResourceWithStreamingResponse(self._k8s.clusters)
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
@@ -15,7 +14,7 @@ from .rules import (
|
|
|
15
14
|
RulesResourceWithStreamingResponse,
|
|
16
15
|
AsyncRulesResourceWithStreamingResponse,
|
|
17
16
|
)
|
|
18
|
-
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
17
|
+
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
19
18
|
from ....._utils import maybe_transform, async_maybe_transform
|
|
20
19
|
from ....._compat import cached_property
|
|
21
20
|
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -71,7 +70,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
71
70
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
72
71
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
73
72
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
74
|
-
tags:
|
|
73
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
75
74
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
76
75
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
77
76
|
extra_headers: Headers | None = None,
|
|
@@ -267,7 +266,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
267
266
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
268
267
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
269
268
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
270
|
-
tags:
|
|
269
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
271
270
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
272
271
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
273
272
|
extra_headers: Headers | None = None,
|
|
@@ -276,7 +275,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
276
275
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
277
276
|
) -> TaskIDList:
|
|
278
277
|
"""
|
|
279
|
-
Replace load balancer L7 policy
|
|
278
|
+
Replace load balancer L7 policy
|
|
280
279
|
|
|
281
280
|
Args:
|
|
282
281
|
action: Action
|
|
@@ -348,7 +347,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
348
347
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
349
348
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
350
349
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
351
|
-
tags:
|
|
350
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
352
351
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
353
352
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
354
353
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -439,7 +438,7 @@ class L7PoliciesResource(SyncAPIResource):
|
|
|
439
438
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
440
439
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
441
440
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
442
|
-
tags:
|
|
441
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
443
442
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
444
443
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
445
444
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -518,7 +517,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
518
517
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
519
518
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
520
519
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
521
|
-
tags:
|
|
520
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
522
521
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
523
522
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
524
523
|
extra_headers: Headers | None = None,
|
|
@@ -714,7 +713,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
714
713
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
715
714
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
716
715
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
717
|
-
tags:
|
|
716
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
718
717
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
719
718
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
720
719
|
extra_headers: Headers | None = None,
|
|
@@ -723,7 +722,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
723
722
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
724
723
|
) -> TaskIDList:
|
|
725
724
|
"""
|
|
726
|
-
Replace load balancer L7 policy
|
|
725
|
+
Replace load balancer L7 policy
|
|
727
726
|
|
|
728
727
|
Args:
|
|
729
728
|
action: Action
|
|
@@ -795,7 +794,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
795
794
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
796
795
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
797
796
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
798
|
-
tags:
|
|
797
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
799
798
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
800
799
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
801
800
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -886,7 +885,7 @@ class AsyncL7PoliciesResource(AsyncAPIResource):
|
|
|
886
885
|
redirect_pool_id: str | NotGiven = NOT_GIVEN,
|
|
887
886
|
redirect_prefix: str | NotGiven = NOT_GIVEN,
|
|
888
887
|
redirect_url: str | NotGiven = NOT_GIVEN,
|
|
889
|
-
tags:
|
|
888
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
890
889
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
891
890
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
892
891
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List
|
|
6
5
|
from typing_extensions import Literal
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
|
-
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
9
|
+
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
|
|
11
10
|
from ....._utils import maybe_transform, async_maybe_transform
|
|
12
11
|
from ....._compat import cached_property
|
|
13
12
|
from ....._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -66,7 +65,7 @@ class RulesResource(SyncAPIResource):
|
|
|
66
65
|
value: str,
|
|
67
66
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
68
67
|
key: str | NotGiven = NOT_GIVEN,
|
|
69
|
-
tags:
|
|
68
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
70
69
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
71
70
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
72
71
|
extra_headers: Headers | None = None,
|
|
@@ -258,7 +257,7 @@ class RulesResource(SyncAPIResource):
|
|
|
258
257
|
compare_type: Literal["CONTAINS", "ENDS_WITH", "EQUAL_TO", "REGEX", "STARTS_WITH"] | NotGiven = NOT_GIVEN,
|
|
259
258
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
260
259
|
key: str | NotGiven = NOT_GIVEN,
|
|
261
|
-
tags:
|
|
260
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
262
261
|
type: Literal[
|
|
263
262
|
"COOKIE",
|
|
264
263
|
"FILE_TYPE",
|
|
@@ -351,7 +350,7 @@ class RulesResource(SyncAPIResource):
|
|
|
351
350
|
value: str,
|
|
352
351
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
353
352
|
key: str | NotGiven = NOT_GIVEN,
|
|
354
|
-
tags:
|
|
353
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
355
354
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
356
355
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
357
356
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -450,7 +449,7 @@ class RulesResource(SyncAPIResource):
|
|
|
450
449
|
value: str,
|
|
451
450
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
452
451
|
key: str | NotGiven = NOT_GIVEN,
|
|
453
|
-
tags:
|
|
452
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
454
453
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
455
454
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
456
455
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -535,7 +534,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
535
534
|
value: str,
|
|
536
535
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
537
536
|
key: str | NotGiven = NOT_GIVEN,
|
|
538
|
-
tags:
|
|
537
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
539
538
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
540
539
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
541
540
|
extra_headers: Headers | None = None,
|
|
@@ -727,7 +726,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
727
726
|
compare_type: Literal["CONTAINS", "ENDS_WITH", "EQUAL_TO", "REGEX", "STARTS_WITH"] | NotGiven = NOT_GIVEN,
|
|
728
727
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
729
728
|
key: str | NotGiven = NOT_GIVEN,
|
|
730
|
-
tags:
|
|
729
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
731
730
|
type: Literal[
|
|
732
731
|
"COOKIE",
|
|
733
732
|
"FILE_TYPE",
|
|
@@ -820,7 +819,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
820
819
|
value: str,
|
|
821
820
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
822
821
|
key: str | NotGiven = NOT_GIVEN,
|
|
823
|
-
tags:
|
|
822
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
824
823
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
825
824
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
826
825
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -919,7 +918,7 @@ class AsyncRulesResource(AsyncAPIResource):
|
|
|
919
918
|
value: str,
|
|
920
919
|
invert: bool | NotGiven = NOT_GIVEN,
|
|
921
920
|
key: str | NotGiven = NOT_GIVEN,
|
|
922
|
-
tags:
|
|
921
|
+
tags: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
|
|
923
922
|
polling_interval_seconds: int | NotGiven = NOT_GIVEN,
|
|
924
923
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
925
924
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|